Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose_reply: Fix TypeScript noUncheckedIndexedAccess errors.
Anders Kaseorg6eec89ab9635
diff --git a/web/src/compose_reply.ts b/web/src/compose_reply.tsindex 76030c5ac5c..ddccd8b2912 100644--- a/web/src/compose_reply.ts+++ b/web/src/compose_reply.ts@@ -82,6 +82,7 @@ export function respond_to_message(opts: {const current_filter = narrow_state.filter();assert(current_filter !== undefined);const first_term = current_filter.terms()[0];+ assert(first_term !== undefined);const first_operator = first_term.operator;const first_operand = first_term.operand;