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) {