mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
submessage: Accept todo submessage with extra_data: null.
Before commit 6df3ad251a
(#24235),
get_extra_data_from_widget_type would initialize extra_data to null
for todo messages.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
2b2b6fda5d
commit
e9cdf6f41c
@@ -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),
|
||||
}),
|
||||
]),
|
||||
});
|
||||
|
Reference in New Issue
Block a user