X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ee9d1e39b5d469a827be5a719c9c0860914ab2a8..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 d8c3b65141..37b96bd9b0 100644 --- a/services/workbench2/src/store/workflow-panel/workflow-panel-actions.ts +++ b/services/workbench2/src/store/workflow-panel/workflow-panel-actions.ts @@ -30,6 +30,9 @@ const UUID_PREFIX_PROPERTY_NAME = 'uuidPrefix'; const WORKFLOW_PANEL_DETAILS_UUID = 'workflowPanelDetailsUuid'; export const workflowPanelActions = bindDataExplorerActions(WORKFLOW_PANEL_ID); +export const WORKFLOW_PROCESSES_PANEL_ID = "workflowProcessesPanel"; +export const workflowProcessesPanelActions = bindDataExplorerActions(WORKFLOW_PROCESSES_PANEL_ID); + export const loadWorkflowPanel = () => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { dispatch(workflowPanelActions.REQUEST_ITEMS()); @@ -48,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));