Skip to content

Commit

Permalink
R2-2657 UX - Applying filters
Browse files Browse the repository at this point in the history
- Fixing snackbar after bulk assign
  • Loading branch information
aespinoza-quoin committed Nov 17, 2023
1 parent 3a60c0b commit 5473b65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default namespace =>
return state
.setIn([NAMESPACE, "loading"], false)
.setIn([NAMESPACE, "data"], fromJS([]))
.setIn([NAMESPACE, "errors"], fromJS([]));
.setIn([NAMESPACE, "errors"], fromJS([]))
.setIn([NAMESPACE, "selectedRecordsLength"], 0);
case `${namespace}/${actions.BULK_ASSIGN_USER_SELECTED_RECORDS_LENGTH}`:
return state.setIn([NAMESPACE, "selectedRecordsLength"], fromJS(payload.selectedRecordsLength, 0));
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import SearchableSelect from "../../../searchable-select";
import { enqueueSnackbar } from "../../../notifier";
import { useI18n } from "../../../i18n";
import { applyFilters } from "../../../index-filters/action-creators";
import { DEFAULT_FILTERS } from "../../../record-list/constants";
import { filterUsers } from "../utils";
import { useMemoizedSelector } from "../../../../libs";
import { getFiltersValuesByRecordType } from "../../../index-filters/selectors";
Expand Down Expand Up @@ -128,7 +127,7 @@ const ReassignForm = ({
dispatch(
applyFilters({
recordType,
data: DEFAULT_FILTERS
data: appliedFilters
})
);
};
Expand Down

0 comments on commit 5473b65

Please sign in to comment.