Fix root space appear as category in cyclic relation
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
1ad5317d6e
commit
af833daee4
1 changed files with 2 additions and 1 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in a new issue