From 503df54bd64306345b4c0f930cb8b568cd0f11f1 Mon Sep 17 00:00:00 2001 From: Janne Mareike Koschinski Date: Mon, 20 Mar 2023 10:54:24 +0100 Subject: [PATCH] Handle more edge cases in Space Hierarchy (#10280) --- 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 e0d124af0c..9bb14924f0 100644 --- a/src/components/structures/SpaceHierarchy.tsx +++ b/src/components/structures/SpaceHierarchy.tsx @@ -199,7 +199,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 }); }