From: Lucas Di Pentima Date: Tue, 28 Jan 2020 15:33:08 +0000 (-0300) Subject: 16086: Looks up input values by the correct input id. X-Git-Tag: 2.0.0~7^2~1 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/cb148df557f0134b641e38dc48d1f0570fb2e285 16086: Looks up input values by the correct input id. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/views-components/process-input-dialog/process-input-dialog.tsx b/src/views-components/process-input-dialog/process-input-dialog.tsx index a2d59407..6ccf264c 100644 --- a/src/views-components/process-input-dialog/process-input-dialog.tsx +++ b/src/views-components/process-input-dialog/process-input-dialog.tsx @@ -36,15 +36,14 @@ export const ProcessInputDialog = withDialog(PROCESS_INPUT_DIALOG_NAME)( const getInputs = (data: any) => { if (!data || !data.mounts || !data.mounts[MOUNT_PATH_CWL_WORKFLOW]) { return []; } const inputs = getWorkflowInputs(data.mounts[MOUNT_PATH_CWL_WORKFLOW].content); - return inputs ? inputs.map( - (it: any) => ( + return inputs + ? inputs.map( (it: any) => ( { type: it.type, id: it.id, label: it.label, - value: data.mounts[MOUNT_PATH_CWL_INPUT].content[it.id], + value: data.mounts[MOUNT_PATH_CWL_INPUT].content[it.id.split('#main/')[1]] || [], disabled: true - } - ) - ) : []; + })) + : []; };