mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
change check order for node.users
If node _def hasUsers is false then node.users may not exist... so won't have a length...
This commit is contained in:
parent
acf8c9bc4a
commit
cf3b4e9e63
@ -340,7 +340,7 @@ RED.deploy = (function() {
|
||||
|
||||
var unusedConfigNodes = [];
|
||||
RED.nodes.eachConfig(function(node) {
|
||||
if (node.users.length === 0 && (node._def.hasUsers !== false)) {
|
||||
if ((node._def.hasUsers !== false) && (node.users.length === 0)) {
|
||||
unusedConfigNodes.push(getNodeInfo(node));
|
||||
hasUnusedConfig = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user