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