minor formatting
This commit is contained in:
1 parent
d7f85dec27
commit
dce97cff53
2 files changed
+3
-1
No files matched your search
@@ -224,6 +224,7 @@ export function Lobby() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (closedCategories.has(categoryId)) {
|
||||
closedCategoriesCache.current.set(categoryId, true);
|
||||
return true;
|
||||
|
||||
@@ -452,13 +452,14 @@ export function Space() {
|
||||
return false;
|
||||
}
|
||||
|
||||
// As a subspace can be in multiple spaces,
|
||||
// only return true if all parent spaces are closed.
|
||||
let anyOpen = false;
|
||||
parentParentIds.forEach((id) => {
|
||||
if (!getInClosedCategories(spaceId, id, parentId)) {
|
||||
anyOpen = true;
|
||||
}
|
||||
});
|
||||
|
||||
closedCategoriesCache.current.set(categoryId, !anyOpen);
|
||||
return !anyOpen;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user