Skip to content

Commit

Permalink
Remove required conditions in new ary
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaKhatri committed Jan 24, 2024
1 parent 6a5ff82 commit 46af70d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/views/EditAry/AssessmentRegistryForm/formSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ export const schema: FormSchema = {
dataCollectionStartDate: [],
dataCollectionEndDate: [],
publicationDate: [],
sectors: [],
sectors: [defaultEmptyArrayType],
protectionInfoMgmts: [defaultEmptyArrayType],
focuses: [],
affectedGroups: [],
focuses: [defaultEmptyArrayType],
affectedGroups: [defaultEmptyArrayType],
locations: [defaultEmptyArrayType],
limitations: [requiredCondition],
objectives: [requiredCondition],
limitations: [],
objectives: [],
stakeholders: {
keySelector: (org) => org.clientId,
member: (): OrganizationsListMember => ({
Expand Down Expand Up @@ -196,8 +196,8 @@ export const schema: FormSchema = {
fields: (): ScoreAnalyticalDensitySchemaFields => ({
id: [defaultUndefinedType],
clientId: [requiredCondition],
analysisLevelCovered: [],
figureProvided: [],
analysisLevelCovered: [defaultEmptyArrayType],
figureProvided: [defaultEmptyArrayType],
sector: [],
}),
}),
Expand Down

0 comments on commit 46af70d

Please sign in to comment.