mirror of https://github.com/zulip/zulip.git
typing_events: Fix TypeScript noUncheckedIndexedAccess errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
83eb0a326a
commit
07c220f08b
|
@ -64,7 +64,7 @@ function get_users_typing_for_narrow(): number[] {
|
||||||
}
|
}
|
||||||
|
|
||||||
const terms = narrow_state.search_terms();
|
const terms = narrow_state.search_terms();
|
||||||
if (terms.length === 0) {
|
if (terms[0] === undefined) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue