mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-19 00:20:48 -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);
|
await addConnections(mappedConnections);
|
||||||
|
|
||||||
uiStore.resetLastInteractedWith();
|
uiStore.resetLastInteractedWith();
|
||||||
|
|
||||||
|
if (addedNodes.length > 0) {
|
||||||
selectNodes([addedNodes[addedNodes.length - 1].id]);
|
selectNodes([addedNodes[addedNodes.length - 1].id]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onRevertAddNode({ node }: { node: INodeUi }) {
|
async function onRevertAddNode({ node }: { node: INodeUi }) {
|
||||||
|
|
Loading…
Reference in a new issue