mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ignore disabled nodes when checking for invalid configs on deploy
Closes #2430
This commit is contained in:
parent
be3dd63360
commit
5897045f24
@ -334,8 +334,7 @@ RED.deploy = (function() {
|
|||||||
var invalidNodes = [];
|
var invalidNodes = [];
|
||||||
|
|
||||||
RED.nodes.eachNode(function(node) {
|
RED.nodes.eachNode(function(node) {
|
||||||
hasInvalid = hasInvalid || !node.valid;
|
if (!node.valid && !node.d) {
|
||||||
if (!node.valid) {
|
|
||||||
invalidNodes.push(getNodeInfo(node));
|
invalidNodes.push(getNodeInfo(node));
|
||||||
}
|
}
|
||||||
if (node.type === "unknown") {
|
if (node.type === "unknown") {
|
||||||
@ -345,6 +344,7 @@ RED.deploy = (function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
hasUnknown = unknownNodes.length > 0;
|
hasUnknown = unknownNodes.length > 0;
|
||||||
|
hasInvalid = invalidNodes.length > 0;
|
||||||
|
|
||||||
var unusedConfigNodes = [];
|
var unusedConfigNodes = [];
|
||||||
RED.nodes.eachConfig(function(node) {
|
RED.nodes.eachConfig(function(node) {
|
||||||
|
Loading…
Reference in New Issue
Block a user