We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa2705f commit c29b26dCopy full SHA for c29b26d
react/FilePicker/queries.js
@@ -4,6 +4,7 @@ const FILES_DOCTYPE = 'io.cozy.files'
4
5
const defaultFetchPolicy = fetchPolicies.olderThan(30 * 1000)
6
const TRASH_DIR_ID = `${FILES_DOCTYPE}.trash-dir`
7
+const SHARED_DRIVES_DIR_ID = `${FILES_DOCTYPE}.shared-drives-dir`
8
9
export const buildCurrentFolderQuery = folderId => ({
10
definition: () => Q(FILES_DOCTYPE).getById(folderId),
@@ -23,7 +24,7 @@ export const buildContentFolderQuery = dirId => ({
23
24
})
25
.partialIndex({
26
_id: {
- $ne: TRASH_DIR_ID
27
+ $nin: [SHARED_DRIVES_DIR_ID, TRASH_DIR_ID]
28
}
29
30
.indexFields(['dir_id', 'type', 'name'])
0 commit comments