17595: Fixed selection based on hash
[arvados-workbench2.git] / src / views / run-process-panel / inputs / string-array-input.tsx
index e560b33778fc7cf0f99a76e0461bf8858192e26a..39dbe0afdaa67bcd083a437ad3c0cd5f6bf6f7ef 100644 (file)
@@ -30,7 +30,7 @@ const validationSelector = createSelector(
         : undefined
 );
 
-const required = (value: string[]) =>
+const required = (value: string[] = []) =>
     value.length > 0
         ? undefined
         : ERROR_MESSAGE;
@@ -47,7 +47,7 @@ class InputComponent extends React.PureComponent<GenericInputProps>{
             deletable={!commandInput.disabled}
             orderable={!commandInput.disabled}
             disabled={commandInput.disabled}
-            value={input.value}
+            values={input.value}
             onChange={this.handleChange}
             createNewValue={identity}
             inputComponent={Input}