diff --git a/src/drive/web/modules/queries.js b/src/drive/web/modules/queries.js index 592a0b3a35..0fd80d5dd8 100644 --- a/src/drive/web/modules/queries.js +++ b/src/drive/web/modules/queries.js @@ -342,6 +342,7 @@ export const prepareSuggestionQuery = () => { $ne: TRASH_DIR_ID }, path: { + // this predicate is necessary until the trashed attribute is more reliable $or: [{ $exists: false }, { $regex: '^(?!/.cozy_trash)' }] }, trashed: {