Skip to content

Commit

Permalink
Don't crash
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Dec 19, 2022
1 parent 622e48d commit dd917fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion searchlib/components/SearchApp/useSearchApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export default function useSearchApp({
}),
[appConfig, onAutocomplete, onSearch, locationSearchTerm],
);
console.log('elastiConfig', elasticConfig);

const { facetOptions } = React.useState(useFacetsWithAllOptions(appConfig));

Expand Down
1 change: 1 addition & 0 deletions searchlib/components/SearchView/DefaultContentView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const DefaultContentView = (props) => {
const { sortOptions, resultViews } = appConfig;

const listingViewDef = resultViews.filter((v) => v.id === activeViewId)[0];
if (!listingViewDef) return null;
const ResultViewComponent =
registry.resolve[listingViewDef.factories.view].component;

Expand Down

0 comments on commit dd917fb

Please sign in to comment.