diff --git a/web/src/hash_parser.ts b/web/src/hash_parser.ts index c51cb0ecb9..d14860bfb2 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 {