mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
⚡ Create duplicated node underneath the existing one
This commit is contained in:
parent
0ac97c6523
commit
d00610e629
|
@ -1347,8 +1347,8 @@ export default mixins(
|
||||||
newNodeData.name = this.getUniqueNodeName(newNodeData.name);
|
newNodeData.name = this.getUniqueNodeName(newNodeData.name);
|
||||||
|
|
||||||
newNodeData.position = this.getNewNodePosition(
|
newNodeData.position = this.getNewNodePosition(
|
||||||
[node.position[0] + 180, node.position[1]],
|
[node.position[0], node.position[1] + 150],
|
||||||
[0, 110]
|
[0, 150]
|
||||||
);
|
);
|
||||||
|
|
||||||
await this.addNodes([newNodeData]);
|
await this.addNodes([newNodeData]);
|
||||||
|
|
Loading…
Reference in a new issue