Fix root space appear as category in cyclic relation
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
@@ -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