composebox_typeahead: Fix TypeScript noUncheckedIndexedAccess errors.

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

View File

@ -933,7 +933,7 @@ export function get_candidates(
assert(tokens !== null);
if (tokens[1]) {
const stream_name = tokens[1];
token = tokens[2] || "";
token = tokens[2] ?? "";
// Don't autocomplete if there is a space following '>'
if (token.startsWith(" ")) {