mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 03:42:16 +00:00
feat(core): Support executing single nodes not part of a graph as a partial execution (#13529)
This commit is contained in:
@@ -13,6 +13,12 @@ function findSubgraphRecursive(
|
||||
) {
|
||||
// If the current node is the chosen trigger keep this branch.
|
||||
if (current === trigger) {
|
||||
// If this graph consists of only one node there won't be any connections
|
||||
// and the loop below won't add anything.
|
||||
// We're adding the trigger here so that graphs with one node and no
|
||||
// connections are handled correctly.
|
||||
newGraph.addNode(trigger);
|
||||
|
||||
for (const connection of currentBranch) {
|
||||
newGraph.addNodes(connection.from, connection.to);
|
||||
newGraph.addConnection(connection);
|
||||
|
||||
Reference in New Issue
Block a user