X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ec9331a8435c9844efe3ba018f6c0d0c3f96d573..2d60a3a656babffec5eefc4e3a0e88c8237c3896:/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts diff --git a/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts b/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts index 99ab6829fa..9a1d645b25 100644 --- a/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts +++ b/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts @@ -14,6 +14,7 @@ import { filterCollectionFilesBySelection } from './collection-panel-files-state import { startSubmit, stopSubmit, reset } from 'redux-form'; import { getDialog } from "~/store/dialog/dialog-reducer"; import { getFileFullPath } from "~/services/collection-service/collection-service-files-response"; +import { resourcesDataActions } from "~/store/resources-data/resources-data-actions"; export const collectionPanelFilesAction = unionize({ SET_COLLECTION_FILES: ofType(), @@ -29,6 +30,7 @@ export const loadCollectionFiles = (uuid: string) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { const files = await services.collectionService.files(uuid); dispatch(collectionPanelFilesAction.SET_COLLECTION_FILES(files)); + dispatch(resourcesDataActions.SET_FILES({ uuid, files })); }; export const removeCollectionFiles = (filePaths: string[]) =>