fix: suppress algolia errors (#39703)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						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} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user