Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
composebox_typeahead: Fix TypeScript noUncheckedIndexedAccess errors.
Anders Kaseorge50a115d6f89
diff --git a/web/src/composebox_typeahead.ts b/web/src/composebox_typeahead.tsindex 2398657f302..81d3bef50ad 100644--- a/web/src/composebox_typeahead.ts+++ b/web/src/composebox_typeahead.ts@@ -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(" ")) {