From 49f4d6aff39ec0af1ef8e19cf0c962da6e98957a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Pul?= <4625220+codespool@users.noreply.github.com> Date: Mon, 23 Sep 2024 23:27:15 +0800 Subject: [PATCH] add missing import (#710) --- src/theme/SearchBar/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);