X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/40b55e355fe0a206a4cb3eec676e44d935b7d5ec..695ee8df0aeadd5eb788ca29da6450813880da76:/src/views-components/project-properties/update-project-properties-form.tsx

diff --git a/src/views-components/project-properties/update-project-properties-form.tsx b/src/views-components/project-properties/update-project-properties-form.tsx
index e6e78e34..0b5554bc 100644
--- a/src/views-components/project-properties/update-project-properties-form.tsx
+++ b/src/views-components/project-properties/update-project-properties-form.tsx
@@ -6,18 +6,18 @@ import { reduxForm, reset } from 'redux-form';
 import { withStyles } from '@material-ui/core';
 import {
     PROJECT_UPDATE_PROPERTIES_FORM_NAME,
-    addPropertyToUpdateProjectForm
+    PROJECT_UPDATE_FORM_NAME
 } from 'store/projects/project-update-actions';
 import {
     ResourcePropertiesForm,
     ResourcePropertiesFormData
 } from 'views-components/resource-properties-form/resource-properties-form';
+import { addPropertyToResourceForm } from 'store/resources/resources-actions';
 
 const Form = withStyles(
     ({ spacing }) => (
         { container:
             {
-                paddingTop: spacing.unit,
                 margin: 0,
             }
         })
@@ -26,7 +26,7 @@ const Form = withStyles(
 export const UpdateProjectPropertiesForm = reduxForm<ResourcePropertiesFormData>({
     form: PROJECT_UPDATE_PROPERTIES_FORM_NAME,
     onSubmit: (data, dispatch) => {
-        dispatch(addPropertyToUpdateProjectForm(data));
+        dispatch(addPropertyToResourceForm(data, PROJECT_UPDATE_FORM_NAME));
         dispatch(reset(PROJECT_UPDATE_PROPERTIES_FORM_NAME));
     }
 })(Form);
\ No newline at end of file
