Fix crash on space leave
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user