Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Handle more edge cases in Space Hierarchy (#10280)
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Mar 20, 2023
1 parent ca0dfb6 commit 503df54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/SpaceHierarchy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit 503df54

Please sign in to comment.