mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix duplicating array item in visual json editor
This commit is contained in:
		| @@ -106,7 +106,7 @@ | ||||
|             options.push({id:"red-ui-editor-type-json-menu-duplicate", icon:"fa fa-copy", label:RED._("jsonEditor.duplicate"),onselect:function(){ | ||||
|                 var newKey = item.key; | ||||
|                 if (item.parent.type === 'array') { | ||||
|                     newKey = parent.children.length; | ||||
|                     newKey = item.parent.children.length; | ||||
|                 } else { | ||||
|                     var m = /^(.*?)(-(\d+))?$/.exec(newKey); | ||||
|                     var usedKeys = {}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user