fix: workflow definition editor autoLayout (#4634)

This commit is contained in:
Dharmang Gajjar 2023-11-18 18:09:02 +05:30 committed by GitHub
parent bf205c72b9
commit 75b2f30775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ export class FlowchartComponent {
edges.push({id: index, source: connection.source, target: connection.target});
});
let data = {nodes: nodes, edges: edges}
let data = {nodes: nodes, edges: edges.map(e => ({...e, source: {...e.source, cell: e.source.activity}, target: {...e.target, cell: e.target.activity}}))}
let newLayout = dagreLayout.layout(data);
newLayout.nodes.forEach(node => {