stream_list: Fix TypeScript noUncheckedIndexedAccess errors.

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

View File

@ -677,7 +677,7 @@ export function get_sidebar_stream_topic_info(filter: Filter): {
}; };
const op_stream = filter.operands("channel"); const op_stream = filter.operands("channel");
if (op_stream.length === 0) { if (op_stream[0] === undefined) {
return result; return result;
} }