Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

submessage: Accept todo submessage with extra_data: null.

Anders Kaseorge9cdf6f41c3c
diff --git a/web/src/submessage.ts b/web/src/submessage.ts
index bbd352f1376..636e3d1a243 100644
--- a/web/src/submessage.ts
+++ b/web/src/submessage.ts
@@ -42,7 +42,7 @@ const widget_data_event_schema = z.object({
}),
z.object({
widget_type: z.literal("todo"),
- extra_data: todo_widget_extra_data_schema,
+ extra_data: z.nullable(todo_widget_extra_data_schema),
}),
]),
});