mirror of https://github.com/zulip/zulip.git
stream_list: Fix TypeScript noUncheckedIndexedAccess errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
e6358f5edc
commit
c70799ca25
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue