From c70799ca25123e1c30be0c0b5f3e32f90288a7b9 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 30 May 2024 10:07:59 -0700 Subject: [PATCH] stream_list: Fix TypeScript noUncheckedIndexedAccess errors. Signed-off-by: Anders Kaseorg --- web/src/stream_list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/stream_list.ts b/web/src/stream_list.ts index 77af1b8e1c..28c8b29915 100644 --- a/web/src/stream_list.ts +++ b/web/src/stream_list.ts @@ -677,7 +677,7 @@ export function get_sidebar_stream_topic_info(filter: Filter): { }; const op_stream = filter.operands("channel"); - if (op_stream.length === 0) { + if (op_stream[0] === undefined) { return result; }