X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bfaee40696c3c15556ef089e69da47bb832b08db..ee9d1e39b5d469a827be5a719c9c0860914ab2a8:/services/workbench2/src/views/run-process-panel/run-process-inputs-form.tsx diff --git a/services/workbench2/src/views/run-process-panel/run-process-inputs-form.tsx b/services/workbench2/src/views/run-process-panel/run-process-inputs-form.tsx index 46ab3c5262..ca402ab013 100644 --- a/services/workbench2/src/views/run-process-panel/run-process-inputs-form.tsx +++ b/services/workbench2/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, WorkflowInputsData, EnumCommandInputParameter, isArrayOfType, StringArrayCommandInputParameter, FileArrayCommandInputParameter } from '../../models/workflow'; +import { StringCommandInputParameter, FloatCommandInputParameter, isPrimitiveOfType, WorkflowInputsData, EnumCommandInputParameter, isArrayOfType, StringArrayCommandInputParameter, FileArrayCommandInputParameter, getEnumType } 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'; @@ -94,9 +94,7 @@ const getInputComponent = (input: CommandInputParameter) => { case isPrimitiveOfType(input, CWLType.DIRECTORY): return ; - case typeof input.type === 'object' && - !(input.type instanceof Array) && - input.type.type === 'enum': + case getEnumType(input) !== null: return ; case isArrayOfType(input, CWLType.STRING):