diff --git a/src/components/Lottie/index.tsx b/src/components/Lottie/index.tsx index 5fc99560a27c..a67e6e9b698f 100644 --- a/src/components/Lottie/index.tsx +++ b/src/components/Lottie/index.tsx @@ -103,6 +103,7 @@ function Lottie({source, webStyle, shouldLoadAfterInteractions, ...props}: Props // eslint-disable-next-line react/jsx-props-no-spreading {...props} source={animationFile} + key={`${hasNavigatedAway}`} ref={(ref) => { if (typeof forwardedRef === 'function') { forwardedRef(ref); diff --git a/src/components/Search/index.tsx b/src/components/Search/index.tsx index a915783247b8..5b270c1c2627 100644 --- a/src/components/Search/index.tsx +++ b/src/components/Search/index.tsx @@ -405,7 +405,7 @@ function Search({queryJSON, currentSearchResults, lastNonEmptySearchResults, onS ); } - if (shouldShowEmptyState(isDataLoaded, data.length, searchResults.search.type) && isFocused) { + if (shouldShowEmptyState(isDataLoaded, data.length, searchResults.search.type)) { return (