[ARVADOS-WORKBENCH2] updated: 1.2.0-716-g5f25421

Git user git at public.curoverse.com
Tue Oct 23 10:16:21 EDT 2018


Summary of changes:
 src/store/workbench/workbench-actions.ts | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

       via  5f254216d287fe601863e113508110e0c6245e3d (commit)
      from  6f73d03da9243243e52acedc60c34398fb1ce436 (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 5f254216d287fe601863e113508110e0c6245e3d
Author: Janicki Artur <artur.janicki at contractors.roche.com>
Date:   Tue Oct 23 16:05:58 2018 +0200

    modify copyCollection
    
    Feature #14316
    
    Arvados-DCO-1.1-Signed-off-by: Janicki Artur <artur.janicki at contractors.roche.com>

diff --git a/src/store/workbench/workbench-actions.ts b/src/store/workbench/workbench-actions.ts
index 774e96e..f86ea78 100644
--- a/src/store/workbench/workbench-actions.ts
+++ b/src/store/workbench/workbench-actions.ts
@@ -257,11 +257,10 @@ export const updateCollection = (data: collectionUpdateActions.CollectionUpdateF
 export const copyCollection = (data: CopyFormDialogData) =>
     async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
         try {
-            const oldProject = getResource(data.ownerUuid)(getState().resources);
+            const copyToProject = getResource(data.ownerUuid)(getState().resources);
             const collection = await dispatch<any>(collectionCopyActions.copyCollection(data));
-            // dispatch<any>(updateResources([collection]));
-            if (oldProject && collection) {
-                dispatch<any>(reloadProjectMatchingUuid([oldProject.uuid]));
+            if (copyToProject && collection) {
+                dispatch<any>(reloadProjectMatchingUuid([copyToProject.uuid]));
                 dispatch(snackbarActions.OPEN_SNACKBAR({
                     message: 'Collection has been copied.',
                     hideDuration: 3000,

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list