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 = [];
|
let directIds = [];
|
||||||
|
|
||||||
if (spaceId) {
|
if (spaceId) {
|
||||||
const spaceChildIds = roomList.getSpaceChildren(spaceId);
|
const spaceChildIds = roomList.getSpaceChildren(spaceId) ?? [];
|
||||||
spaceIds = spaceChildIds.filter((roomId) => spaces.has(roomId));
|
spaceIds = spaceChildIds.filter((roomId) => spaces.has(roomId));
|
||||||
roomIds = spaceChildIds.filter((roomId) => rooms.has(roomId));
|
roomIds = spaceChildIds.filter((roomId) => rooms.has(roomId));
|
||||||
directIds = spaceChildIds.filter((roomId) => directs.has(roomId));
|
directIds = spaceChildIds.filter((roomId) => directs.has(roomId));
|
||||||
|
|
Loading…
Reference in a new issue