X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c952afae1af2fb31b68be04f70bd7ae6f9d52aba..4f88234088269faa064da9459376c3af2a740a7d:/src/views-components/collection-properties/create-collection-properties-form.tsx diff --git a/src/views-components/collection-properties/create-collection-properties-form.tsx b/src/views-components/collection-properties/create-collection-properties-form.tsx index 3f19e158..fb18bb1a 100644 --- a/src/views-components/collection-properties/create-collection-properties-form.tsx +++ b/src/views-components/collection-properties/create-collection-properties-form.tsx @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { reduxForm, reset } from 'redux-form'; +import { reduxForm, change } from 'redux-form'; import { withStyles } from '@material-ui/core'; import { COLLECTION_CREATE_PROPERTIES_FORM_NAME, @@ -13,6 +13,7 @@ import { ResourcePropertiesFormData } from 'views-components/resource-properties-form/resource-properties-form'; import { addPropertyToResourceForm } from 'store/resources/resources-actions'; +import { PROPERTY_VALUE_FIELD_NAME } from 'views-components/resource-properties-form/property-value-field'; const Form = withStyles( ({ spacing }) => ( @@ -27,6 +28,6 @@ export const CreateCollectionPropertiesForm = reduxForm { dispatch(addPropertyToResourceForm(data, COLLECTION_CREATE_FORM_NAME)); - dispatch(reset(COLLECTION_CREATE_PROPERTIES_FORM_NAME)); + dispatch(change(COLLECTION_CREATE_PROPERTIES_FORM_NAME, PROPERTY_VALUE_FIELD_NAME, '')); } })(Form); \ No newline at end of file