Fix missing null guard in space hierarchy pagination

pull/21833/head
Michael Telatynski 2021-09-16 14:28:55 +01:00
parent febd3df5ac
commit 1e91191fa2
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ const SpaceHierarchy = ({
const { loading, rooms, hierarchy, loadMore } = useSpaceSummary(space);
const filteredRoomSet = useMemo<Set<IHierarchyRoom>>(() => {
if (!rooms.length) return new Set();
if (!rooms?.length) return new Set();
const lcQuery = query.toLowerCase().trim();
if (!lcQuery) return new Set(rooms);