diff --git a/red/runtime/nodes/flows/util.js b/red/runtime/nodes/flows/util.js index 9803679a9..9a8e6fcea 100644 --- a/red/runtime/nodes/flows/util.js +++ b/red/runtime/nodes/flows/util.js @@ -127,7 +127,7 @@ module.exports = { config.forEach(function(n) { if (n.type !== 'subflow' && n.type !== 'tab') { for (var prop in n) { - if (n.hasOwnProperty(prop) && prop !== 'id' && prop !== 'wires' && prop !== 'type' && prop !== '_users' && flow.configs[n[prop]]) { + if (n.hasOwnProperty(prop) && prop !== 'id' && prop !== 'wires' && prop !== 'type' && prop !== '_users' && flow.configs.hasOwnProperty(n[prop])) { // This property references a global config node flow.configs[n[prop]]._users.push(n.id) }