Merge branch '19434-collapse-left-panel' closes #19434
[arvados-workbench2.git] / src / views / run-process-panel / inputs / int-array-input.tsx
index a299bd87ed084dba85410aeb599032ae9e4d8c00..8077f28a600342cf95b3e77cf0980a17a4b30d0c 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from 'react';
+import React from 'react';
 import { isRequiredInput, IntArrayCommandInputParameter } from 'models/workflow';
 import { Field } from 'redux-form';
 import { ERROR_MESSAGE } from 'validators/require';
@@ -30,7 +30,7 @@ const validationSelector = createSelector(
 );
 
 const required = (value: string[]) =>
-    value.length > 0
+    value && value.length > 0
         ? undefined
         : ERROR_MESSAGE;