Skip to content

Commit

Permalink
feat(de fields): add field rules & move catcombo validation to fields…
Browse files Browse the repository at this point in the history
….tsx
  • Loading branch information
Mohammer5 committed Nov 15, 2023
1 parent 85c4128 commit c518123
Show file tree
Hide file tree
Showing 2 changed files with 219 additions and 16 deletions.
3 changes: 0 additions & 3 deletions src/pages/dataElements/form/createDataElementSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ export const createDataElementSchema = (schemas: ModelSchemas) =>
z.literal('DEFAULT'),
])
.refine((v) => !!v, { message: requiredMessage }),
categoryCombo: z.object({
id: z.string().min(1, { message: requiredMessage }),
}),
optionSet: z.object({
id: z.string().optional(),
}),
Expand Down
Loading

0 comments on commit c518123

Please sign in to comment.