mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Remove bad z property from import config nodes
This commit is contained in:
		| @@ -1235,6 +1235,9 @@ RED.nodes = (function() { | ||||
|                 if (defaultWorkspace == null) { | ||||
|                     defaultWorkspace = n; | ||||
|                 } | ||||
|                 if (activeWorkspace === 0) { | ||||
|                     activeWorkspace = n.id; | ||||
|                 } | ||||
|                 if (createNewIds || options.importMap[n.id] === "copy") { | ||||
|                     nid = getID(); | ||||
|                     workspace_map[n.id] = nid; | ||||
| @@ -1490,6 +1493,9 @@ RED.nodes = (function() { | ||||
|                                 delete node.wires; | ||||
|                                 delete node.inputLabels; | ||||
|                                 delete node.outputLabels; | ||||
|                                 if (!n.z) { | ||||
|                                     delete node.z; | ||||
|                                 } | ||||
|                             } | ||||
|                             var orig = {}; | ||||
|                             for (var p in n) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user