typing_events: Fix TypeScript noUncheckedIndexedAccess errors.

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

View File

@ -64,7 +64,7 @@ function get_users_typing_for_narrow(): number[] {
}
const terms = narrow_state.search_terms();
if (terms.length === 0) {
if (terms[0] === undefined) {
return [];
}