fix(editor): Fix bug causing connections to not get created on new canvas (no-changelog) (#10360)

This commit is contained in:
Alex Grozav 2024-08-12 19:17:15 +03:00 committed by GitHub
parent 1668edd98c
commit 3df07dc0a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -800,6 +800,7 @@ async function onAddNodesAndConnections(
}
await addNodes(nodes, { dragAndDrop, position, trackHistory: true });
await nextTick();
const offsetIndex = editableWorkflow.value.nodes.length - nodes.length;
const mappedConnections: CanvasConnectionCreateData[] = connections.map(({ from, to }) => {