From c6ee030721b472e3f5bbb6e38caa0fa78c6a7d75 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 19 Mar 2019 14:38:49 +0100 Subject: [PATCH] Fix docsearch --- website/src/components/search.js | 1 + 1 file changed, 1 insertion(+) diff --git a/website/src/components/search.js b/website/src/components/search.js index 9d63c06b5..994adc025 100644 --- a/website/src/components/search.js +++ b/website/src/components/search.js @@ -7,6 +7,7 @@ import classes from '../styles/search.module.sass' const Search = ({ id, placeholder, settings }) => { const { apiKey, indexName } = settings + if (!apiKey && !indexName) return null const [initialized, setInitialized] = useState(false) useEffect(() => { if (!initialized) {