Skip to content

Commit

Permalink
Don't crash when there is no configuration for hiding the remove butt…
Browse files Browse the repository at this point in the history
…on for active filters
  • Loading branch information
zotya committed Jun 5, 2024
1 parent a555255 commit a94ffeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searchlib/components/FilterList/ActiveFilterValue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ActiveFilterValue = (props) => {
const filterConfig = appConfig.facets.find(
(f) => (f.id || f.field) === field,
);
const hideRemoveFilter = filterConfig.hideRemoveFilter || false;
const hideRemoveFilter = filterConfig?.hideRemoveFilter || false;
const facetField = field;
const { label, activeFilterLabel } = appConfig.facets.find(
({ field }) => field === facetField,
Expand Down

0 comments on commit a94ffeb

Please sign in to comment.