🐛 Fix issue that disabled nodes get used as Start-Node #812

This commit is contained in:
Jan Oberhauser 2020-08-03 10:15:19 +02:00
parent d1bb823e1e
commit 5eb30b34a9

View file

@ -781,7 +781,11 @@ export class Workflow {
node = this.nodes[nodeName];
nodeType = this.nodeTypes.getByName(node.type) as INodeType;
if (nodeType.trigger !== undefined || nodeType.poll !== undefined) {
if (node.disabled === true) {
continue;
}
return node;
}
}