diff --git a/client/src/components/search/WithInstantSearch.js b/client/src/components/search/WithInstantSearch.js index 00f4ed0ebe..e38db5ed92 100644 --- a/client/src/components/search/WithInstantSearch.js +++ b/client/src/components/search/WithInstantSearch.js @@ -24,7 +24,7 @@ const DEBOUNCE_TIME = 100; const searchClient = algoliaAppId && algoliaAPIKey ? algoliasearch(algoliaAppId, algoliaAPIKey) - : {}; + : { search: () => {} }; const propTypes = { children: PropTypes.any, diff --git a/client/src/components/search/searchBar/SearchHits.js b/client/src/components/search/searchBar/SearchHits.js index cd0b5b04b8..d649dc60b8 100644 --- a/client/src/components/search/searchBar/SearchHits.js +++ b/client/src/components/search/searchBar/SearchHits.js @@ -59,7 +59,11 @@ const CustomHits = connectHits( key={hit.objectID} > {noHits ? ( - + ) : (