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

check availability of config node on deploy

This commit is contained in:
Kunihiko Toumura 2021-12-21 18:10:42 +09:00
parent 720a163273
commit 828888490a

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));