From 0735cdb3aa79be3a76bdc64a4875f943f0b3daf4 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Fri, 10 Feb 2023 12:48:58 +0530 Subject: [PATCH] fix search result not visible --- src/components/PhotoFrame.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/PhotoFrame.tsx b/src/components/PhotoFrame.tsx index 190b0074b..09e5d5e41 100644 --- a/src/components/PhotoFrame.tsx +++ b/src/components/PhotoFrame.tsx @@ -174,6 +174,7 @@ const PhotoFrame = ({ } if ( !isDeduplicating && + !isInSearchMode && activeCollection === ALL_SECTION && (IsArchived(item) || archivedCollections?.has(item.collectionID)) @@ -181,6 +182,7 @@ const PhotoFrame = ({ return false; } if ( + !isInSearchMode && activeCollection === ARCHIVE_SECTION && !IsArchived(item) ) { @@ -193,7 +195,11 @@ const PhotoFrame = ({ ) { return false; } - if (activeCollection === TRASH_SECTION && !item.isTrashed) { + if ( + !isInSearchMode && + activeCollection === TRASH_SECTION && + !item.isTrashed + ) { return false; } if (activeCollection !== TRASH_SECTION && item.isTrashed) {