[ARVADOS-WORKBENCH2] updated: 1.2.0-650-gf423de4

Git user git at public.curoverse.com
Sun Oct 14 13:52:02 EDT 2018


Summary of changes:
 src/views/run-process-panel/inputs/file-array-input.tsx | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

       via  f423de49b7f87a9f8ec402a46ef9d3f06deb4fad (commit)
      from  d1090c6a45ab8755220051cc018bda7597af613a (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 f423de49b7f87a9f8ec402a46ef9d3f06deb4fad
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Sun Oct 14 19:51:49 2018 +0200

    Fix files array parsing and formatting
    
    Feature #14232
    
    Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>

diff --git a/src/views/run-process-panel/inputs/file-array-input.tsx b/src/views/run-process-panel/inputs/file-array-input.tsx
index be58eee..48fc42d 100644
--- a/src/views/run-process-panel/inputs/file-array-input.tsx
+++ b/src/views/run-process-panel/inputs/file-array-input.tsx
@@ -39,10 +39,10 @@ export const FileArrayInput = ({ input }: FileArrayInputProps) =>
         format={formatFiles}
         validate={validationSelector(input)} />;
 
-const parseFiles = (files: CollectionFile[]) =>
-    files.length > 0
-        ? files.map(parse)
-        : undefined;
+const parseFiles = (files: CollectionFile[] | string) =>
+    typeof files === 'string'
+        ? undefined
+        : files.map(parse);
 
 const parse = (file: CollectionFile): File => ({
     class: CWLType.FILE,
@@ -51,7 +51,8 @@ const parse = (file: CollectionFile): File => ({
     path: file.path,
 });
 
-const formatFiles = (files: File[] = []) => files.map(format);
+const formatFiles = (files: File[] = []) =>
+    files.map(format);
 
 const format = (file: File): CollectionFile => ({
     id: file.location

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list