Skip to content

Commit

Permalink
#1461 | Reflect filter changes immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Aug 1, 2024
1 parent f7e3aff commit abf8de0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ class CustomDashboardActions {

static clearCounts(state, action, context) {
const newState = {...state};
const customDashboardService = context.get(CustomDashboardService);
const {selectedFilterValues} = customDashboardService.getDashboardData(state.activeDashboardUUID);
newState.customDashboardFilters = selectedFilterValues;
newState.hasFiltersSet = getHasFiltersSet(selectedFilterValues);
newState.cardToCountResultMap = {};
return newState;
}
Expand Down

0 comments on commit abf8de0

Please sign in to comment.