X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cdc8a73914399a401642ca553e9d3d8b2d42db5c..792b37dffef102105fa902888cb948da43b892b4:/src/views-components/dialog-forms/create-collection-dialog.ts diff --git a/src/views-components/dialog-forms/create-collection-dialog.ts b/src/views-components/dialog-forms/create-collection-dialog.ts index 581743e03f..374b070b22 100644 --- a/src/views-components/dialog-forms/create-collection-dialog.ts +++ b/src/views-components/dialog-forms/create-collection-dialog.ts @@ -14,9 +14,9 @@ export const CreateCollectionDialog = compose( reduxForm({ form: COLLECTION_CREATE_FORM_NAME, onSubmit: (data, dispatch) => { - dispatch(createCollection(data)); + // Somehow an extra field called 'files' gets added, copy + // the data object to get rid of it. + dispatch(createCollection({ ownerUuid: data.ownerUuid, name: data.name, description: data.description })); } }) )(DialogCollectionCreate); - -// onSubmit: (data: { name: string, description: string }, files: UploadFile[]) => void; \ No newline at end of file