fix: suppress algolia errors (#39703)
parent
b16c0641bf
commit
0a0fe2bae5
|
@ -24,7 +24,7 @@ const DEBOUNCE_TIME = 100;
|
|||
const searchClient =
|
||||
algoliaAppId && algoliaAPIKey
|
||||
? algoliasearch(algoliaAppId, algoliaAPIKey)
|
||||
: {};
|
||||
: { search: () => {} };
|
||||
|
||||
const propTypes = {
|
||||
children: PropTypes.any,
|
||||
|
|
|
@ -59,7 +59,11 @@ const CustomHits = connectHits(
|
|||
key={hit.objectID}
|
||||
>
|
||||
{noHits ? (
|
||||
<NoHitsSuggestion title={noHitsTitle} />
|
||||
<NoHitsSuggestion
|
||||
handleMouseEnter={handleMouseEnter}
|
||||
handleMouseLeave={handleMouseLeave}
|
||||
title={noHitsTitle}
|
||||
/>
|
||||
) : (
|
||||
<Suggestion
|
||||
handleMouseEnter={handleMouseEnter}
|
||||
|
|
Loading…
Reference in New Issue