X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/38d27e9783f7f760cee84cc225e86144069848c4..2e7aa6b043dab6001c9b8be11ddb75c7723fd594:/src/views-components/projects-tree-picker/shared-tree-picker.tsx diff --git a/src/views-components/projects-tree-picker/shared-tree-picker.tsx b/src/views-components/projects-tree-picker/shared-tree-picker.tsx index d6a59bea2d..c15df6ba0c 100644 --- a/src/views-components/projects-tree-picker/shared-tree-picker.tsx +++ b/src/views-components/projects-tree-picker/shared-tree-picker.tsx @@ -7,11 +7,12 @@ import { ProjectsTreePicker, ProjectsTreePickerProps } from 'views-components/pr import { Dispatch } from 'redux'; import { ShareMeIcon } from 'components/icon/icon'; import { loadProject } from 'store/tree-picker/tree-picker-actions'; +import { SHARED_PROJECT_ID } from 'store/tree-picker/tree-picker-actions'; export const SharedTreePicker = connect(() => ({ rootItemIcon: ShareMeIcon, }), (dispatch: Dispatch): Pick => ({ - loadRootItem: (_, pickerId, includeCollections, includeFiles) => { - dispatch(loadProject({ id: 'Shared with me', pickerId, includeCollections, includeFiles, loadShared: true })); + loadRootItem: (_, pickerId, includeCollections, includeFiles, options) => { + dispatch(loadProject({ id: SHARED_PROJECT_ID, pickerId, includeCollections, includeFiles, loadShared: true, options })); }, -}))(ProjectsTreePicker); \ No newline at end of file +}))(ProjectsTreePicker);