[ARVADOS-WORKBENCH2] updated: 1.1.4-622-g2496ba1

Git user git at public.curoverse.com
Fri Aug 17 08:07:37 EDT 2018


Summary of changes:
 .../create-collection-dialog-with-selected.tsx                | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

       via  2496ba1b64722e0dbcd55796d436ae8d5379e13d (commit)
      from  5a40b5b582b25e410622da8b7e484fad757f6bd1 (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 2496ba1b64722e0dbcd55796d436ae8d5379e13d
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Fri Aug 17 14:07:22 2018 +0200

    Replace mappings with compose fn
    
    Feature #14014
    
    Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>

diff --git a/src/views-components/create-collection-dialog-with-selected/create-collection-dialog-with-selected.tsx b/src/views-components/create-collection-dialog-with-selected/create-collection-dialog-with-selected.tsx
index 46bc724..5346402 100644
--- a/src/views-components/create-collection-dialog-with-selected/create-collection-dialog-with-selected.tsx
+++ b/src/views-components/create-collection-dialog-with-selected/create-collection-dialog-with-selected.tsx
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { Dispatch } from "redux";
+import { Dispatch, compose } from "redux";
 import { reduxForm, reset, startSubmit, stopSubmit } from "redux-form";
 import { withDialog } from "~/store/dialog/with-dialog";
 import { dialogActions } from "~/store/dialog/dialog-actions";
@@ -18,12 +18,13 @@ export const createCollectionWithSelected = () =>
         dispatch(dialogActions.OPEN_DIALOG({ id: DIALOG_COLLECTION_CREATE_WITH_SELECTED, data: {} }));
     };
 
-export const [DialogCollectionCreateWithSelectedFile] = [DialogCollectionCreateWithSelected]
-    .map(withDialog(DIALOG_COLLECTION_CREATE_WITH_SELECTED))
-    .map(reduxForm({
+
+export const DialogCollectionCreateWithSelectedFile = compose(
+    withDialog(DIALOG_COLLECTION_CREATE_WITH_SELECTED),
+    reduxForm({
         form: DIALOG_COLLECTION_CREATE_WITH_SELECTED,
         onSubmit: (data, dispatch) => {
             dispatch(startSubmit(DIALOG_COLLECTION_CREATE_WITH_SELECTED));
             setTimeout(() => dispatch(stopSubmit(DIALOG_COLLECTION_CREATE_WITH_SELECTED, { name: 'Invalid name' })), 2000);
         }
-    }));
+    }))(DialogCollectionCreateWithSelected);

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list