Merge pull request #5295 from node-red/5256-skip-disabled-nodes

Ignore disabled nodes when checking for dependency modules
This commit is contained in:
Nick O'Leary
2025-10-09 13:44:58 +01:00
committed by GitHub

View File

@@ -171,6 +171,10 @@ async function checkFlowDependencies(flowConfig) {
const checkedSubflows = {};
while (nodes.length > 0) {
let n = nodes.shift();
if (n.d) {
// Ignore disabled nodes
continue
}
if (subflowTypes[n.type] && !checkedSubflows[n.type]) {
checkedSubflows[n.type] = true;
nodes = nodes.concat(subflowTypes[n.type].flow)