From b62a9829c5d33c2a4e5191b66dc14dd5582a283b Mon Sep 17 00:00:00 2001 From: Janne Mareike Koschinski Date: Fri, 3 Mar 2023 13:08:16 +0100 Subject: [PATCH] Handle more edge cases in Space Hierarchy --- src/components/structures/SpaceHierarchy.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/SpaceHierarchy.tsx b/src/components/structures/SpaceHierarchy.tsx index 94cd6c5638d..4dcdac47534 100644 --- a/src/components/structures/SpaceHierarchy.tsx +++ b/src/components/structures/SpaceHierarchy.tsx @@ -197,7 +197,7 @@ const Tile: React.FC = ({ ); } - 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 }); }