Commit 2eff4fe
committed
fix: prevent default filters from getting overwritten
Clear Filters button was not unchecking selected filters because of a reference
between settings and defaultSettings. i.e., whenever filters changed, the filter reasons in the defaultFilters
object also changed, which is not desirable.
Using the spread operator to get selected filters fixes this issue1 parent fc93338 commit 2eff4fe
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments