mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Ensure configNode.users is updated properly on import
This commit is contained in:
		| @@ -1354,9 +1354,9 @@ RED.nodes = (function() { | ||||
|             for (var d3 in n._def.defaults) { | ||||
|                 if (n._def.defaults.hasOwnProperty(d3)) { | ||||
|                     if (n._def.defaults[d3].type && node_map[n[d3]]) { | ||||
|                         n[d3] = node_map[n[d3]].id; | ||||
|                         configNode = RED.nodes.node(n[d3]); | ||||
|                         if (configNode && configNode.users.indexOf(n) === -1) { | ||||
|                         configNode = node_map[n[d3]]; | ||||
|                         n[d3] = configNode.id; | ||||
|                         if (configNode.users.indexOf(n) === -1) { | ||||
|                             configNode.users.push(n); | ||||
|                         } | ||||
|                     } else if (nodeTypeArrayReferences.hasOwnProperty(n.type) && nodeTypeArrayReferences[n.type] === d3 && n[d3] !== undefined && n[d3] !== null) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user