16086: Adds default value on string array validator.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 27 Jan 2020 20:54:56 +0000 (17:54 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 27 Jan 2020 20:54:56 +0000 (17:54 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/views/run-process-panel/inputs/string-array-input.tsx

index e560b33778fc7cf0f99a76e0461bf8858192e26a..c73b39bfb43ea718f64fdc10ba2113dbf2525e6b 100644 (file)
@@ -30,7 +30,7 @@ const validationSelector = createSelector(
         : undefined
 );
 
-const required = (value: string[]) =>
+const required = (value: string[] = []) =>
     value.length > 0
         ? undefined
         : ERROR_MESSAGE;