From fcbb1cd558611cfd2920da6a2092fa704906a965 Mon Sep 17 00:00:00 2001 From: sujal shah Date: Wed, 18 Sep 2024 07:10:27 +0530 Subject: [PATCH] todo_widget: Add `type`` as Optional in `new_task_inbound_data_schema`. This commit corrects the `type` parameter in `new_task_inbound_data_schema`, which was previously optional but not added as such. --- web/src/todo_widget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/todo_widget.ts b/web/src/todo_widget.ts index 7f8068c056..8a65ead7c5 100644 --- a/web/src/todo_widget.ts +++ b/web/src/todo_widget.ts @@ -31,7 +31,7 @@ const todo_widget_inbound_data = z.intersection( ); const new_task_inbound_data_schema = z.object({ - type: z.literal("new_task"), + type: z.literal("new_task").optional(), key: z.number().int().nonnegative().max(MAX_IDX), task: z.string(), desc: z.string(),