fixed trashing and restoring files/folders that were inside parent folders

This commit is contained in:
subnub
2024-10-10 14:02:04 -04:00
parent 374d735a71
commit ee10d308c0
7 changed files with 118 additions and 26 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ const createQuery = ({
query = { ...query, filename: { $gt: startAtName } };
}
if (trashMode) {
if (trashMode && parent === "/") {
query = { ...query, "metadata.trashed": true };
} else {
query = { ...query, "metadata.trashed": null };