diff --git a/app/lib/actions/locationActions.ts b/app/lib/actions/locationActions.ts index 057f757..6414d44 100644 --- a/app/lib/actions/locationActions.ts +++ b/app/lib/actions/locationActions.ts @@ -27,8 +27,8 @@ const FormSchema = (t:IntlTemplateFn) => z.object({ _id: z.string(), locationName: z.coerce.string().min(1, t("location-name-required")), locationNotes: z.string(), - addToSubsequentMonths: z.boolean().optional(), - updateScope: z.enum(["current", "subsequent", "all"]).optional(), + addToSubsequentMonths: z.boolean().optional().nullable(), + updateScope: z.enum(["current", "subsequent", "all"]).optional().nullable(), }) // dont include the _id field in the response .omit({ _id: true });