Skip to content

Commit

Permalink
Allow type filter to be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Jan 6, 2023
1 parent f5ea2d1 commit 4e445fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions searchlib/components/FilterList/ActiveFilterValue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Term } from '@eeacms/search/components';
import { Label } from 'semantic-ui-react';

const ActiveFilterValue = (props) => {
const { field, values, removeFilter } = props;
const { field, values, type, removeFilter } = props;
const { appConfig } = useAppConfig();

const filterConfig = appConfig.facets.find(
Expand Down Expand Up @@ -37,7 +37,7 @@ const ActiveFilterValue = (props) => {
</span>
}
onRemove={() => {
removeFilter(field, value, filterConfig.filterType);
removeFilter(field, value, type || filterConfig.filterType);
}}
/>
);
Expand Down

0 comments on commit 4e445fc

Please sign in to comment.