fix search result not visible

This commit is contained in:
Abhinav 2023-02-10 12:48:58 +05:30
parent 2a07ccfc01
commit 0735cdb3aa

View file

@ -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) {