18257: Adds checks to array values thay may be null or undefined.
[arvados-workbench2.git] / src / views / run-process-panel / inputs / float-array-input.tsx
index 780cbc90fedc7e8a45e93b798fd3843c433a3d6d..3f0a5334fa468c2deba7095435937bd0e2ef3bac 100644 (file)
@@ -30,7 +30,7 @@ const validationSelector = createSelector(
 );
 
 const required = (value: string[]) =>
-    value.length > 0
+    value && value.length > 0
         ? undefined
         : ERROR_MESSAGE;