X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/34e8ef518dd3c4da8f1ad4b099bfbd99c71fa68f..59cc1b248e39a17bbf46449add178d957b167b9a:/src/views/run-process-panel/inputs/int-array-input.tsx?ds=sidebyside

diff --git a/src/views/run-process-panel/inputs/int-array-input.tsx b/src/views/run-process-panel/inputs/int-array-input.tsx
index a878444b..22c069b5 100644
--- a/src/views/run-process-panel/inputs/int-array-input.tsx
+++ b/src/views/run-process-panel/inputs/int-array-input.tsx
@@ -8,7 +8,6 @@ import { Field } from 'redux-form';
 import { ERROR_MESSAGE } from '~/validators/require';
 import { GenericInputProps, GenericInput } from '~/views/run-process-panel/inputs/generic-input';
 import { ChipsInput } from '~/components/chips-input/chips-input';
-import { identity } from 'lodash';
 import { createSelector } from 'reselect';
 import { IntInput } from '~/components/int-input/int-input';
 
@@ -42,15 +41,17 @@ const IntArrayInputComponent = (props: GenericInputProps) =>
 
 class InputComponent extends React.PureComponent<GenericInputProps>{
     render() {
+        const { commandInput, input, meta } = this.props;
         return <ChipsInput
-            deletable
-            orderable
-            value={this.props.input.value}
+            deletable={!commandInput.disabled}
+            orderable={!commandInput.disabled}
+            disabled={commandInput.disabled}
+            value={input.value}
             onChange={this.handleChange}
-            createNewValue={identity}
+            createNewValue={value => parseInt(value, 10)}
             inputComponent={IntInput}
             inputProps={{
-                error: this.props.meta.error,
+                error: meta.error,
             }} />;
     }
 
