From 54d5d2db44a0e5e5843e10269c7e420944d052fc Mon Sep 17 00:00:00 2001 From: Flaminia Cavallo Date: Mon, 16 Dec 2024 10:13:06 +0100 Subject: [PATCH] fix: fix type of cat options dates --- src/pages/categoryOptions/form/categoryOptionSchema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/categoryOptions/form/categoryOptionSchema.ts b/src/pages/categoryOptions/form/categoryOptionSchema.ts index 2b32af3a..1bb8336e 100644 --- a/src/pages/categoryOptions/form/categoryOptionSchema.ts +++ b/src/pages/categoryOptions/form/categoryOptionSchema.ts @@ -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(