Skip to content

Commit

Permalink
fix(RHINENG-4108): Filter reset when AddSystemsToGroupModal closes
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorKGOW authored and gkarat committed Mar 26, 2024
1 parent 69fffdd commit 3cef678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/GroupSystems/GroupSystems.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const GroupSystems = ({ groupName, groupId }) => {
hostGroupFilter,
lastSeenFilter
);
}, []);
}, [addToGroupModalOpen]);

const bulkSelectConfig = useBulkSelectConfig(
selected,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ const AddSystemsToGroupModal = ({
const calculateSelected = () => (selected ? selected.size : 0);

const handleModalClose = () => {
setIsModalOpen(false);
if (calculateSelected() > 0) {
dispatch(selectEntity(-1, false));
}
dispatch(clearFilters());
setIsModalOpen(false);
};

const edgeParityInventoryListEnabled = useFeatureFlag(
Expand Down

0 comments on commit 3cef678

Please sign in to comment.