X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e63198a93d7b537ffbb68b8210c99f76041fd112..dd89200ad6fdbfa337fdbab5f54def8712c6746c:/src/views-components/create-collection-dialog/create-collection-dialog.tsx?ds=sidebyside diff --git a/src/views-components/create-collection-dialog/create-collection-dialog.tsx b/src/views-components/create-collection-dialog/create-collection-dialog.tsx index 3f8cc07c..94eb82f9 100644 --- a/src/views-components/create-collection-dialog/create-collection-dialog.tsx +++ b/src/views-components/create-collection-dialog/create-collection-dialog.tsx @@ -6,11 +6,12 @@ import { connect } from "react-redux"; import { Dispatch } from "redux"; import { SubmissionError } from "redux-form"; -import { RootState } from "../../store/store"; +import { RootState } from "~/store/store"; import { DialogCollectionCreate } from "../dialog-create/dialog-collection-create"; -import { collectionCreateActions, createCollection } from "../../store/collections/creator/collection-creator-action"; -import { snackbarActions } from "../../store/snackbar/snackbar-actions"; -import { UploadFile } from "../../store/collections/uploader/collection-uploader-actions"; +import { collectionCreateActions, createCollection } from "~/store/collections/creator/collection-creator-action"; +import { snackbarActions } from "~/store/snackbar/snackbar-actions"; +import { UploadFile } from "~/store/collections/uploader/collection-uploader-actions"; +import { projectPanelActions } from "~/store/project-panel/project-panel-action"; const mapStateToProps = (state: RootState) => ({ open: state.collections.creator.opened @@ -35,6 +36,7 @@ const addCollection = (data: { name: string, description: string }, files: File[ message: "Collection has been successfully created.", hideDuration: 2000 })); + dispatch(projectPanelActions.REQUEST_ITEMS()); }); };