From: Ajay Bura Date: Sun, 13 Mar 2022 13:22:51 +0000 (+0530) Subject: Fix root space appear as category in cyclic relation X-Git-Tag: v1.8.1~17 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=af833daee4e0d5fa4f8c77ff66fd98a17d66f30b;p=cinny.git Fix root space appear as category in cyclic relation Signed-off-by: Ajay Bura --- 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(() => {