From 83ae7ba236218f3d6aad06c7ce2e421bbffa9a1c Mon Sep 17 00:00:00 2001 From: Eliezer Steinbock <3090527+elie222@users.noreply.github.com> Date: Fri, 10 Jan 2025 01:15:32 +0200 Subject: [PATCH] Fix build --- apps/web/utils/actions/validation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/utils/actions/validation.ts b/apps/web/utils/actions/validation.ts index 72745c66..6334a3b7 100644 --- a/apps/web/utils/actions/validation.ts +++ b/apps/web/utils/actions/validation.ts @@ -140,7 +140,8 @@ export const createRuleBody = z.object({ ), conditionalOperator: z .enum([LogicalOperator.AND, LogicalOperator.OR]) - .default(LogicalOperator.AND), + .default(LogicalOperator.AND) + .optional(), }); export type CreateRuleBody = z.infer;