From 6eec89ab9635054a3ec11022290737777dd9de8d Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 30 May 2024 10:07:58 -0700 Subject: [PATCH] compose_reply: Fix TypeScript noUncheckedIndexedAccess errors. Signed-off-by: Anders Kaseorg --- web/src/compose_reply.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/compose_reply.ts b/web/src/compose_reply.ts index 76030c5ac5..ddccd8b291 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;