minor formatting

This commit is contained in:
Gimle Larpes committed 2026-02-12 20:34:44 +01:00
1 parent d7f85dec27
commit dce97cff53
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -224,6 +224,7 @@ export function Lobby() {
}
}
}
if (closedCategories.has(categoryId)) {
closedCategoriesCache.current.set(categoryId, true);
return true;
+2 -1
View File
@@ -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;
},