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