Fix Skeleton UI showing up when not intended.

pull/21833/head
Michael Telatynski 2020-11-09 13:53:28 +00:00
parent a7e6d8e7f0
commit 27d276715e
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ export default class RoomList extends React.PureComponent<IProps, IState> {
return p; return p;
}, [] as TagID[]); }, [] as TagID[]);
const showSkeleton = tagOrder.every(tag => !this.state.sublists[tag]?.length); const showSkeleton = Object.values(RoomListStore.instance.unfilteredLists).every(list => !list?.length);
for (const orderedTagId of tagOrder) { for (const orderedTagId of tagOrder) {
const orderedRooms = this.state.sublists[orderedTagId] || []; const orderedRooms = this.state.sublists[orderedTagId] || [];