Skip to content

Commit

Permalink
remove useless changes
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Dec 17, 2024
1 parent ec4ea93 commit b916803
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ function DocSearch({
useAlgoliaContextualFacetFilters() as FacetFilters;

const configFacetFilters: FacetFilters =
('facetFilters' in props.searchParameters!
? props.searchParameters?.facetFilters
: []) ?? [];
props.searchParameters?.facetFilters ?? [];

const facetFilters: FacetFilters = contextualSearch
? // Merge contextual search filters with config filters
Expand All @@ -108,7 +106,7 @@ function DocSearch({
configFacetFilters;

// We let user override default searchParameters if she wants to
const searchParameters: DocSearchModalProps['searchParameters'] = {
const searchParameters: DocSearchProps['searchParameters'] = {
...props.searchParameters,
facetFilters,
};
Expand Down

0 comments on commit b916803

Please sign in to comment.