diff --git a/ui/src/components/diagram/WorkflowGraph.jsx b/ui/src/components/diagram/WorkflowGraph.jsx index aeed502998..9178630f43 100644 --- a/ui/src/components/diagram/WorkflowGraph.jsx +++ b/ui/src/components/diagram/WorkflowGraph.jsx @@ -339,7 +339,7 @@ class WorkflowGraph extends React.Component { }; handleClick = (e) => { - const taskRef = e.path[1].id || e.path[2].id; // could be 2 layers down + const taskRef = e.composedPath()[1].id || e.composedPath()[2].id; // could be 2 layers down const node = this.graph.node(taskRef); if (node.type === "DF_TASK_PLACEHOLDER") { if (this.props.onClick) this.props.onClick({ ref: node.firstDfRef });