Skip to content

Commit

Permalink
Fix the weird bug on cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ajay committed Oct 14, 2021
1 parent fce3de1 commit 839cc77
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export function FiltersConfigModal({
setFormValues({ filters: {} });
setErroredFilters([]);
if (!isSaving) {
setFilterHierarchy(getInitialFilterHierarchy());

This comment has been minimized.

Copy link
@michael-s-molina

michael-s-molina Oct 14, 2021

Member

Can we reuse the getInitialFilterHierarchy? You are calling the same function one line below and this function loops through all filter configurations.

setOrderedFilters(buildFilterGroup(getInitialFilterHierarchy()));
form.resetFields();
}
Expand Down

0 comments on commit 839cc77

Please sign in to comment.