diff --git a/src/theme/SearchBar/index.js b/src/theme/SearchBar/index.js index 6ca7dde7bbc..340e7bd7d95 100644 --- a/src/theme/SearchBar/index.js +++ b/src/theme/SearchBar/index.js @@ -46,7 +46,7 @@ function DocSearch({ contextualSearch, externalUrlRegex, ...props }) { ...props.searchParameters, facetFilters, }; - const { query: externalQuery } = useSearch(); + const { query: externalQuery, setQuery: setExternalQuery } = useSearch(); const history = useHistory(); const searchContainer = useRef(null); const searchButtonRef = useRef(null);