1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-11-10 12:35:46 +03:00

🐛 Fix bug that highest nodes did not get found when one was disabled

This commit is contained in:
Jan Oberhauser 2019-08-02 11:58:57 +02:00
parent 88a82efe07
commit b38623fa92

View File

@ -459,7 +459,7 @@ export class Workflow {
if (checkedNodes!.includes(nodeName)) {
// Node got checked already before
return [];
return currentHighest;
}
checkedNodes!.push(nodeName);
@ -491,11 +491,8 @@ export class Workflow {
}
addNodes.forEach((name) => {
// Only add if:
// - Node is not on the list already anyway
// - And if it has not been checked already which means that we
// are in a loop
if (returnNodes.indexOf(name) === -1 && !checkedNodes!.includes(name)) {
// Only add if node is not on the list already anyway
if (returnNodes.indexOf(name) === -1) {
returnNodes.push(name);
}
});