X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/340b992768b4460ef27b1102f7065381be96f2ea..47f421fa743e2b4b09d4f0fbfbead00545e327d4:/src/store/workflow-panel/workflow-panel-actions.ts diff --git a/src/store/workflow-panel/workflow-panel-actions.ts b/src/store/workflow-panel/workflow-panel-actions.ts index 2f00bba6..03ddf341 100644 --- a/src/store/workflow-panel/workflow-panel-actions.ts +++ b/src/store/workflow-panel/workflow-panel-actions.ts @@ -61,5 +61,7 @@ export const showWorkflowDetails = (uuid: string) => export const getWorkflowDetails = (state: RootState) => { const uuid = getProperty(WORKFLOW_PANEL_DETAILS_UUID)(state.properties); - return uuid ? getResource(uuid)(state.resources) : undefined; + const workflows = state.runProcessPanel.workflows; + const workflow = workflows.find(workflow => workflow.uuid === uuid); + return workflow || undefined; };