X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c59db7f1ffae1a16a5458740510e173582e68925..35d6c5a870aeff7bb2cbf6ec80d306debad872c1:/src/views/run-process-panel/run-process-inputs-form.tsx diff --git a/src/views/run-process-panel/run-process-inputs-form.tsx b/src/views/run-process-panel/run-process-inputs-form.tsx index 37349a6e36..45b9711793 100644 --- a/src/views/run-process-panel/run-process-inputs-form.tsx +++ b/src/views/run-process-panel/run-process-inputs-form.tsx @@ -7,7 +7,7 @@ import { reduxForm, InjectedFormProps } from 'redux-form'; import { CommandInputParameter, CWLType, IntCommandInputParameter, BooleanCommandInputParameter, FileCommandInputParameter, DirectoryCommandInputParameter, DirectoryArrayCommandInputParameter, FloatArrayCommandInputParameter, IntArrayCommandInputParameter } from '~/models/workflow'; import { IntInput } from '~/views/run-process-panel/inputs/int-input'; import { StringInput } from '~/views/run-process-panel/inputs/string-input'; -import { StringCommandInputParameter, FloatCommandInputParameter, isPrimitiveOfType, File, Directory, WorkflowInputsData, EnumCommandInputParameter, isArrayOfType, StringArrayCommandInputParameter, FileArrayCommandInputParameter } from '../../models/workflow'; +import { StringCommandInputParameter, FloatCommandInputParameter, isPrimitiveOfType, WorkflowInputsData, EnumCommandInputParameter, isArrayOfType, StringArrayCommandInputParameter, FileArrayCommandInputParameter } from '../../models/workflow'; import { FloatInput } from '~/views/run-process-panel/inputs/float-input'; import { BooleanInput } from './inputs/boolean-input'; import { FileInput } from './inputs/file-input'; @@ -35,7 +35,7 @@ const inputsSelector = (props: RunProcessInputFormProps) => const initialValuesSelector = createSelector( inputsSelector, inputs => inputs.reduce( - (values, input) => ({ ...values, [input.id]: input.default }), + (values, input) => ({ ...values, [input.id]: input.value || input.default }), {})); const propsSelector = createStructuredSelector({