X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6234908246415d038d74f9f0b69ab8ea886f9296..a459a376f98f7cb8741c8ab1057c9578e59dc327:/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 9a1d645b25..e441959cc8 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 @@ -11,7 +11,7 @@ import { snackbarActions } from "../../snackbar/snackbar-actions"; import { dialogActions } from '../../dialog/dialog-actions'; import { getNodeValue } from "~/models/tree"; import { filterCollectionFilesBySelection } from './collection-panel-files-state'; -import { startSubmit, stopSubmit, reset } from 'redux-form'; +import { startSubmit, stopSubmit, reset, initialize } 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"; @@ -96,7 +96,7 @@ export interface RenameFileDialogData { export const openRenameFileDialog = (data: RenameFileDialogData) => (dispatch: Dispatch) => { - dispatch(reset(RENAME_FILE_DIALOG)); + dispatch(initialize(RENAME_FILE_DIALOG, data)); dispatch(dialogActions.OPEN_DIALOG({ id: RENAME_FILE_DIALOG, data })); };