Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
hash_parser: Fix TypeScript noUncheckedIndexedAccess errors.
Anders Kaseorgfc178211191c
diff --git a/web/src/hash_parser.ts b/web/src/hash_parser.tsindex c51cb0ecb97..d14860bfb2a 100644--- a/web/src/hash_parser.ts+++ b/web/src/hash_parser.ts@@ -12,7 +12,7 @@ export function get_hash_section(hash?: string): string {const parts = hash.replace(/\/$/, "").split(/\//);- return parts[1] || "";+ return parts[1] ?? "";}function get_nth_hash_section(hash: string, n: number): string {