Skip to content

Commit

Permalink
[Mission] completedBy in actions no longer required
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed May 13, 2024
1 parent 3789404 commit d116c2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ export const getCompletionEnvActionControlSchema = (ctx: any): Yup.SchemaOf<EnvA
completedBy: Yup.string()
.min(3, 'Minimum 3 lettres pour le trigramme')
.max(3, 'Maximum 3 lettres pour le trigramme')
.nullable()
.required(HIDDEN_ERROR),
.nullable(),
controlPlans: Yup.array().of(ClosedControlPlansSchema).ensure().required().min(1),
geom: shouldUseAlternateValidationInTestEnvironment
? Yup.object().nullable()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ export const getCompletionEnvActionSurveillanceSchema = (ctx: any): Yup.SchemaOf
completedBy: Yup.string()
.min(3, 'Minimum 3 lettres pour le trigramme')
.max(3, 'Maximum 3 lettres pour le trigramme')
.nullable()
.required(HIDDEN_ERROR),
.nullable(),
controlPlans: Yup.array().ensure().of(ClosedControlPlansSchema).ensure().required().min(1),
geom: shouldUseAlternateValidationInTestEnvironment
? Yup.object().nullable()
Expand Down

0 comments on commit d116c2d

Please sign in to comment.