Skip to content

Commit

Permalink
fix for wrong filter deletion (#961)
Browse files Browse the repository at this point in the history
Co-authored-by: Jesús Espino <jespinog@gmail.com>
  • Loading branch information
sbishel and jespino authored Aug 13, 2021
1 parent 0525bfc commit 1f36db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/viewHeader/filterEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const FilterEntry = React.memo((props: Props): JSX.Element => {
<Button
onClick={() => {
const filterGroup = createFilterGroup(view.fields.filter)
filterGroup.filters = filterGroup.filters.filter((o) => isAFilterGroupInstance(o) || areFilterClausesEqual(o, filter))
filterGroup.filters = filterGroup.filters.filter((o) => isAFilterGroupInstance(o) || !areFilterClausesEqual(o, filter))
mutator.changeViewFilter(view.id, view.fields.filter, filterGroup)
}}
>
Expand Down

0 comments on commit 1f36db5

Please sign in to comment.