Fix crash on space leave

This commit is contained in:
Ajay Bura 2022-09-28 18:17:15 +05:30
parent d0ddedc2b2
commit 759f16d5b9

View file

@ -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));