From af833daee4e0d5fa4f8c77ff66fd98a17d66f30b Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Sun, 13 Mar 2022 18:52:51 +0530 Subject: [PATCH] Fix root space appear as category in cyclic relation Signed-off-by: Ajay Bura --- src/app/organisms/navigation/Home.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/organisms/navigation/Home.jsx b/src/app/organisms/navigation/Home.jsx index c239582..95bf88e 100644 --- a/src/app/organisms/navigation/Home.jsx +++ b/src/app/organisms/navigation/Home.jsx @@ -18,7 +18,7 @@ function Home({ spaceId }) { const { spaces, rooms, directs, roomIdToParents, } = roomList; - const categorizedSpaces = useCategorizedSpaces(); + useCategorizedSpaces(); const isCategorized = accountData.categorizedSpaces.has(spaceId); let categories = null; @@ -42,6 +42,7 @@ function Home({ spaceId }) { if (isCategorized) { categories = roomList.getCategorizedSpaces(spaceIds); + categories.delete(spaceId); } useEffect(() => {