Handle more edge cases in Space Hierarchy (#10280)

pull/28217/head
Janne Mareike Koschinski 2023-03-20 10:54:24 +01:00 committed by GitHub
parent ca0dfb6c1e
commit 503df54bd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ const Tile: React.FC<ITileProps> = ({
);
}
let description = _t("%(count)s members", { count: room.num_joined_members });
let description = _t("%(count)s members", { count: room.num_joined_members ?? 0 });
if (numChildRooms !== undefined) {
description += " · " + _t("%(count)s rooms", { count: numChildRooms });
}