fix cache in Lobby

This commit is contained in:
Gimle Larpes committed 2026-02-13 11:43:28 +01:00
1 parent 1333ee0549
commit 694ca2180c
1 file changed
+3 -1
+3 -1
View File
@@ -235,9 +235,11 @@ export function Lobby() {
// As a subspace can be in multiple spaces,
// only return true if all parent spaces are closed.
return !Array.from(parentParentIds).some(
const allClosed = !Array.from(parentParentIds).some(
(id) => !getInClosedCategories(spaceId, id, parentId)
);
closedCategoriesCache.current.set(categoryId, allClosed);
return allClosed;
},
[closedCategories, getRoom, roomToParents, spaceRooms]
);