mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): fix single-node execution failing in main mode (#4421)
* 🐛 Fix Manual Trigger group * 🐛 Account for single-node execution
This commit is contained in:
@@ -899,6 +899,10 @@ export class Workflow {
|
||||
for (const nodeName of nodeNames) {
|
||||
node = this.nodes[nodeName];
|
||||
|
||||
if (nodeNames.length === 1 && !node.disabled) {
|
||||
return node;
|
||||
}
|
||||
|
||||
nodeType = this.nodeTypes.getByNameAndVersion(node.type, node.typeVersion) as INodeType;
|
||||
|
||||
if (nodeType && (nodeType.trigger !== undefined || nodeType.poll !== undefined)) {
|
||||
|
||||
Reference in New Issue
Block a user