Client: Home: Fix hiding filter block when groups are filtered

This commit is contained in:
Aleksandr Lushkin 2024-07-25 11:19:16 +02:00
parent aa7980ab37
commit 9ac5f66ead

View File

@ -564,8 +564,15 @@ export default inject(
const { usersStore, groupsStore, viewAs: accountsViewAs } = peopleStore;
const { getUsersList: fetchPeople } = usersStore;
const { getGroups: fetchGroups, fetchGroup, groups } = groupsStore;
const isEmptyGroups = (groups && groups.length === 0) || !Boolean(groups);
const {
getGroups: fetchGroups,
fetchGroup,
groups,
groupsIsFiltered,
} = groupsStore;
const isEmptyGroups =
!groupsIsFiltered &&
((groups && groups.length === 0) || !Boolean(groups));
if (!firstLoad) {
if (isLoading) {