mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(editor): Fix bug causing connections to not get created on new canvas (no-changelog) (#10360)
This commit is contained in:
parent
1668edd98c
commit
3df07dc0a5
|
@ -800,6 +800,7 @@ async function onAddNodesAndConnections(
|
||||||
}
|
}
|
||||||
|
|
||||||
await addNodes(nodes, { dragAndDrop, position, trackHistory: true });
|
await addNodes(nodes, { dragAndDrop, position, trackHistory: true });
|
||||||
|
await nextTick();
|
||||||
|
|
||||||
const offsetIndex = editableWorkflow.value.nodes.length - nodes.length;
|
const offsetIndex = editableWorkflow.value.nodes.length - nodes.length;
|
||||||
const mappedConnections: CanvasConnectionCreateData[] = connections.map(({ from, to }) => {
|
const mappedConnections: CanvasConnectionCreateData[] = connections.map(({ from, to }) => {
|
||||||
|
|
Loading…
Reference in a new issue