From 828888490a7c6262d8041fdeb09ea82fcbce5fce Mon Sep 17 00:00:00 2001 From: Kunihiko Toumura Date: Tue, 21 Dec 2021 18:10:42 +0900 Subject: [PATCH] check availability of config node on deploy --- .../@node-red/editor-client/src/js/ui/deploy.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js b/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js index fdff99a69..a407fc6cd 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js @@ -333,6 +333,16 @@ RED.deploy = (function() { var unknownNodes = []; 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) { if (!node.valid && !node.d) { invalidNodes.push(getNodeInfo(node));