Fix root space appear as category in cyclic relation
Signed-off-by: Ajay Bura <[email protected]>
This commit is contained in:
1 parent
1ad5317d6e
commit
af833daee4
1 file changed
+2
-1
@@ -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(() => {
|
||||
|
||||
Reference in new issue
Block a user