From c410eacb44cbdb3b2d150f59d3014fffec8ecc69 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 8968f9c785a..3c41f431952 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 }); }