Skip to content

Commit

Permalink
fix little search facet typo
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Nov 27, 2020
1 parent bd62be9 commit baddb8b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type ContextualSearchFilters = {
// We may want to support multiple search engines, don't couple that to Algolia/DocSearch
// Maybe users will want to use its own search engine solution
export default function useContextualSearchFilters(): ContextualSearchFilters {
const {siteConfig} = useDocusaurusContext();
const {i18n} = useDocusaurusContext();
const allDocsData = useAllDocsData();
const activePluginAndVersion = useActivePluginAndVersion();
const docsPreferredVersionByPluginId = useDocsPreferredVersionByPluginId();
Expand All @@ -46,7 +46,7 @@ export default function useContextualSearchFilters(): ContextualSearchFilters {
];

return {
locale: siteConfig.i18n.currentLocale,
locale: i18n.currentLocale,
tags,
};
}

0 comments on commit baddb8b

Please sign in to comment.