[ARVADOS-WORKBENCH2] updated: 1.3.0-135-gc9f7a670

Git user git at public.curoverse.com
Fri Dec 21 08:06:43 EST 2018


Summary of changes:
 src/store/projects/project-create-actions.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

       via  c9f7a67011582d0beb478b1d0407145a5b9e8143 (commit)
      from  7afc443a21879751d8afd8ec36a3ae993d98b85a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit c9f7a67011582d0beb478b1d0407145a5b9e8143
Author: Janicki Artur <artur.janicki at contractors.roche.com>
Date:   Fri Dec 21 14:06:30 2018 +0100

    change code after CR
    
    Feature #14248_assigning_properties_to_projects_during_create
    
    Arvados-DCO-1.1-Signed-off-by: Janicki Artur <artur.janicki at contractors.roche.com>

diff --git a/src/store/projects/project-create-actions.ts b/src/store/projects/project-create-actions.ts
index 51ac3d3b..cb0b72aa 100644
--- a/src/store/projects/project-create-actions.ts
+++ b/src/store/projects/project-create-actions.ts
@@ -74,14 +74,14 @@ export const createProject = (project: Partial<ProjectResource>) =>
 
 export const addPropertyToCreateProjectForm = (data: ResourcePropertiesFormData) =>
     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
-        const properties = CREATE_FORM_SELECTOR(getState(), 'properties') || {};
+        const properties = { ...CREATE_FORM_SELECTOR(getState(), 'properties') };
         properties[data.key] = data.value;
-        dispatch(change(PROJECT_CREATE_FORM_NAME, 'properties', { ...properties } ));
+        dispatch(change(PROJECT_CREATE_FORM_NAME, 'properties', properties ));
     };
 
 export const removePropertyFromCreateProjectForm = (key: string) =>
     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
-        const properties = CREATE_FORM_SELECTOR(getState(), 'properties');
+        const properties = { ...CREATE_FORM_SELECTOR(getState(), 'properties') };
         delete properties[key];
-        dispatch(change(PROJECT_CREATE_FORM_NAME, 'properties', { ...properties } ));
+        dispatch(change(PROJECT_CREATE_FORM_NAME, 'properties', properties ));
     };
\ No newline at end of file

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list