mirror of
https://github.com/RGBCube/cinny
synced 2025-07-31 08:57:46 +00:00
Fix crash on space leave
This commit is contained in:
parent
d0ddedc2b2
commit
759f16d5b9
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ function Home({ spaceId }) {
|
|||
let directIds = [];
|
||||
|
||||
if (spaceId) {
|
||||
const spaceChildIds = roomList.getSpaceChildren(spaceId);
|
||||
const spaceChildIds = roomList.getSpaceChildren(spaceId) ?? [];
|
||||
spaceIds = spaceChildIds.filter((roomId) => spaces.has(roomId));
|
||||
roomIds = spaceChildIds.filter((roomId) => rooms.has(roomId));
|
||||
directIds = spaceChildIds.filter((roomId) => directs.has(roomId));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue