Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
web: Avoid Zod .or().
Anders Kaseorg6dafa9f1c7ad
diff --git a/web/src/message_edit_history.ts b/web/src/message_edit_history.tsindex 816fc5921f2..e28b240468f 100644--- a/web/src/message_edit_history.ts+++ b/web/src/message_edit_history.ts@@ -53,7 +53,7 @@ const server_message_history_schema = z.object({rendered_content: z.string(),timestamp: z.number(),topic: z.string(),- user_id: z.number().or(z.null()),+ user_id: z.nullable(z.number()),prev_topic: z.optional(z.string()),stream: z.optional(z.number()),prev_stream: z.optional(z.number()),