mirror of https://github.com/zulip/zulip.git
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.
This commit is contained in:
parent
2e394f3913
commit
fcbb1cd558
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue