Skip to content

Commit

Permalink
fix: fix type of cat options dates
Browse files Browse the repository at this point in the history
  • Loading branch information
flaminic committed Dec 16, 2024
1 parent 338d4c7 commit 54d5d2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/categoryOptions/form/categoryOptionSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const categoryOptionSchema = identifiable
})
.optional(),
description: z.string().trim().optional(),
startDate: z.string().date().optional(),
endDate: z.string().date().optional(),
startDate: z.coerce.date().optional(),
endDate: z.coerce.date().optional(),
organisationUnits: referenceCollection.optional(),
})
.refine(
Expand Down

0 comments on commit 54d5d2d

Please sign in to comment.