Skip to content

Commit

Permalink
Don't fail on the Include archived facet
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Feb 28, 2023
1 parent c2d22a8 commit 1cefb6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion searchlib/components/SearchApp/FacetApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default function FacetApp(props) {
// console.log({ searchContext, props, driver });
const { filters, removeFilter, addFilter } = searchContext; // driver.state

const facet = appConfig.facets?.find((f) => f.field === field);
const facet = appConfig.facets?.find(
(f) => f.field === field || f.id === field,
);
const FacetComponent = registry.resolve[facet.factory].component;

const fallback = props.filterType || facet.filterType;
Expand Down

0 comments on commit 1cefb6f

Please sign in to comment.