1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3304 from node-red-hitachi/dev-unknownconfig

Check availability of type of config node on deploy
This commit is contained in:
Nick O'Leary 2022-01-10 18:33:36 +00:00 committed by GitHub
commit 2743c7c6ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,6 +333,16 @@ RED.deploy = (function() {
var unknownNodes = []; var unknownNodes = [];
var invalidNodes = []; var invalidNodes = [];
RED.nodes.eachConfig(function(node) {
if (!node.valid && !node.d) {
invalidNodes.push(getNodeInfo(node));
}
if (node.type === "unknown") {
if (unknownNodes.indexOf(node.name) == -1) {
unknownNodes.push(node.name);
}
}
});
RED.nodes.eachNode(function(node) { RED.nodes.eachNode(function(node) {
if (!node.valid && !node.d) { if (!node.valid && !node.d) {
invalidNodes.push(getNodeInfo(node)); invalidNodes.push(getNodeInfo(node));