mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-31 15:37:26 -08:00
fix(editor): Add length check for selecting added nodes (no-changelog) (#11976)
This commit is contained in:
parent
3c4418f17b
commit
78c64adb09
|
@ -911,7 +911,10 @@ async function onAddNodesAndConnections(
|
|||
await addConnections(mappedConnections);
|
||||
|
||||
uiStore.resetLastInteractedWith();
|
||||
selectNodes([addedNodes[addedNodes.length - 1].id]);
|
||||
|
||||
if (addedNodes.length > 0) {
|
||||
selectNodes([addedNodes[addedNodes.length - 1].id]);
|
||||
}
|
||||
}
|
||||
|
||||
async function onRevertAddNode({ node }: { node: INodeUi }) {
|
||||
|
|
Loading…
Reference in a new issue