From 8ca03a92ff5f0133fe9c6663d85ef355412d20ea Mon Sep 17 00:00:00 2001 From: Sebastian Pietschner <32213671+sebasptsch@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:12:09 +1000 Subject: [PATCH] save --- packages/frontend/src/pages/_authenticated/events.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/_authenticated/events.tsx b/packages/frontend/src/pages/_authenticated/events.tsx index 48056f839..083eb0616 100644 --- a/packages/frontend/src/pages/_authenticated/events.tsx +++ b/packages/frontend/src/pages/_authenticated/events.tsx @@ -27,7 +27,7 @@ const defaultTo = DateTime.now().plus({ month: 1 }).startOf("day").toISO(); const defaultFrom = DateTime.now().startOf("day").toISO(); const eventsSearchSchema = z.object({ - fromDate: z.string().datetime().catch(defaultFrom), + fromDate: z.string().datetime().optional().catch(defaultFrom), toDate: z.string().datetime().catch(defaultTo), type: z.union([EventTypeSchema, z.undefined()]).catch(undefined), });