1
0
Fork 0
mirror of https://github.com/n8n-io/n8n.git synced 2025-03-05 20:50:17 -08:00

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

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 }) => {