Retain prior behavior

This commit is contained in:
Manav Rathi
2025-06-25 16:48:58 +05:30
parent a6a1b4baa8
commit da8b9daff0

View File

@@ -685,10 +685,15 @@ const Page: React.FC = () => {
const fileOpHelper = (op: FileOp) => async () => {
showLoadingBar();
try {
// passing files here instead of filteredData for hide ops because we want to move all files copies to hidden collection
const selectedFiles = getSelectedFiles(
selected,
op == "hide" ? state.collectionFiles : filteredFiles,
op == "hide"
? // passing files here instead of filteredData for hide ops
// because we want to move all files copies to hidden collection
state.collectionFiles.filter(
(f) => !state.hiddenFileIDs.has(f.id),
)
: filteredFiles,
);
const toProcessFiles =
op == "download"