Skip to content

Commit

Permalink
⚡ Fixing tracking new nodes after latest merge
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed Dec 9, 2022
1 parent 68ac78c commit 6ae8f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/views/NodeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3339,7 +3339,7 @@ export default mixins(
},
onAddNode(nodeTypes: Array<{ nodeTypeName: string; position: XYPosition }>, dragAndDrop: boolean) {
nodeTypes.forEach(({ nodeTypeName, position }, index) => {
this.addNode(nodeTypeName, { position, dragAndDrop }, nodeTypes.length === 1 || index > 0);
this.addNode(nodeTypeName, { position, dragAndDrop }, nodeTypes.length === 1 || index > 0, true);
if(index === 0) return;
// If there's more than one node, we want to connect them
// this has to be done in mutation subscriber to make sure both nodes already
Expand Down

0 comments on commit 6ae8f07

Please sign in to comment.