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