Skip to content

Commit

Permalink
Merge pull request #981 from Northeastern-Electric-Racing/#980-dont-r…
Browse files Browse the repository at this point in the history
…equire-notes

#980 Remove Requirement for notes/assignees
  • Loading branch information
anthonybernardi authored Mar 15, 2023
2 parents 9b649ef + 6d06155 commit a71c05a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export interface FormInput {
}

const schema = yup.object().shape({
notes: yup.string().required(),
notes: yup.string(),
deadline: yup.date().required(),
priority: yup.string().required(),
assignees: yup.array().required(),
assignees: yup.array(),
title: yup.string().required()
});

Expand Down Expand Up @@ -260,7 +260,6 @@ const TaskListNotesModal: React.FC<TaskListNotesModalProps> = ({
<Controller
name="assignees"
control={control}
rules={{ required: true }}
render={({ field: { onChange, value } }) => (
<Autocomplete
isOptionEqualToValue={(option, value) => option.id === value.id}
Expand Down Expand Up @@ -304,10 +303,8 @@ const TaskListNotesModal: React.FC<TaskListNotesModalProps> = ({
<Controller
name={'notes'}
control={control}
rules={{ required: true }}
render={({ field: { onChange, value } }) => (
<TextField
required
onChange={onChange}
value={value}
multiline
Expand Down

0 comments on commit a71c05a

Please sign in to comment.