compose_reply: Fix TypeScript noUncheckedIndexedAccess errors.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-30 10:07:58 -07:00
parent cbffc10e9e
commit 6eec89ab96
1 changed files with 1 additions and 0 deletions

View File

@ -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;