X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cf315eea954e291f56999eb5dcdec559a08e70c0..04704ea80b294655fe14d0c8cddf4ec1a6b21b4d:/services/workbench2/src/store/workflow-panel/workflow-panel-actions.ts diff --git a/services/workbench2/src/store/workflow-panel/workflow-panel-actions.ts b/services/workbench2/src/store/workflow-panel/workflow-panel-actions.ts index b4c1d3fb7f..37b96bd9b0 100644 --- a/services/workbench2/src/store/workflow-panel/workflow-panel-actions.ts +++ b/services/workbench2/src/store/workflow-panel/workflow-panel-actions.ts @@ -51,9 +51,10 @@ export const openRunProcess = (workflowUuid: string, ownerUuid?: string, name?: async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { const response = await services.workflowService.list(); dispatch(runProcessPanelActions.SET_WORKFLOWS(response.items)); - + const workflows = getState().runProcessPanel.searchWorkflows; - const workflow = workflows.find(workflow => workflow.uuid === workflowUuid); + const listedWorkflow = workflows.find(workflow => workflow.uuid === workflowUuid); + const workflow = listedWorkflow || await services.workflowService.get(workflowUuid); if (workflow) { dispatch(navigateToRunProcess); dispatch(goToStep(1));