X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c72c1ba8048825f15d864753dd247080e29f227b..825ea4fce4ba3568f6105c17e83f4769a9323759:/src/views/run-process-panel/inputs/string-array-input.tsx?ds=sidebyside
diff --git a/src/views/run-process-panel/inputs/string-array-input.tsx b/src/views/run-process-panel/inputs/string-array-input.tsx
index 3b29d1a8..39dbe0af 100644
--- a/src/views/run-process-panel/inputs/string-array-input.tsx
+++ b/src/views/run-process-panel/inputs/string-array-input.tsx
@@ -10,6 +10,7 @@ import { GenericInputProps, GenericInput } from '~/views/run-process-panel/input
import { ChipsInput } from '~/components/chips-input/chips-input';
import { identity } from 'lodash';
import { createSelector } from 'reselect';
+import { Input } from '@material-ui/core';
export interface StringArrayInputProps {
input: StringArrayCommandInputParameter;
@@ -29,22 +30,30 @@ const validationSelector = createSelector(
: undefined
);
-const required = (value: string[]) =>
+const required = (value: string[] = []) =>
value.length > 0
? undefined
: ERROR_MESSAGE;
const StringArrayInputComponent = (props: GenericInputProps) =>
;
-class Input extends React.PureComponent{
+class InputComponent extends React.PureComponent{
render() {
+ const { commandInput, input, meta } = this.props;
return ;
+ createNewValue={identity}
+ inputComponent={Input}
+ inputProps={{
+ error: meta.error
+ }} />;
}
handleChange = (values: {}[]) => {