From 9ac5f66ead08a78a6fdedef09aaf12d53e7d59cc Mon Sep 17 00:00:00 2001 From: Aleksandr Lushkin Date: Thu, 25 Jul 2024 11:19:16 +0200 Subject: [PATCH] Client: Home: Fix hiding filter block when groups are filtered --- packages/client/src/pages/Home/index.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/Home/index.js b/packages/client/src/pages/Home/index.js index abdabbd238..783a72502a 100644 --- a/packages/client/src/pages/Home/index.js +++ b/packages/client/src/pages/Home/index.js @@ -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) {