From dd7eceed64340602eb3bbd1963111e1ccfdf03be Mon Sep 17 00:00:00 2001 From: Abhinav Date: Mon, 23 May 2022 13:11:25 +0530 Subject: [PATCH] add isDeduplication property to avoid hiding archived files --- src/components/PhotoFrame.tsx | 3 +++ src/pages/deduplicate/index.tsx | 1 + 2 files changed, 4 insertions(+) diff --git a/src/components/PhotoFrame.tsx b/src/components/PhotoFrame.tsx index bf92c7278..8fb732d8f 100644 --- a/src/components/PhotoFrame.tsx +++ b/src/components/PhotoFrame.tsx @@ -63,6 +63,7 @@ interface Props { activeCollection: number; isSharedCollection?: boolean; enableDownload?: boolean; + isDeduplicating?: boolean; } type SourceURL = { @@ -87,6 +88,7 @@ const PhotoFrame = ({ activeCollection, isSharedCollection, enableDownload, + isDeduplicating, }: Props) => { const [open, setOpen] = useState(false); const [currentIndex, setCurrentIndex] = useState(0); @@ -202,6 +204,7 @@ const PhotoFrame = ({ return false; } if ( + !isDeduplicating && activeCollection === ALL_SECTION && (IsArchived(item) || archivedCollections?.has(item.collectionID)) diff --git a/src/pages/deduplicate/index.tsx b/src/pages/deduplicate/index.tsx index e518b619d..23853f5d8 100644 --- a/src/pages/deduplicate/index.tsx +++ b/src/pages/deduplicate/index.tsx @@ -177,6 +177,7 @@ export default function Deduplicate() { setSelected={setSelected} selected={selected} activeCollection={ALL_SECTION} + isDeduplicating />