diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index a477968f4976a..9932fbcd893f1 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -396,7 +396,7 @@ export default mixins( if (nameIndex) { index = parseInt(nameIndex, 10); } - baseName = uniqueName = originalName; + baseName = uniqueName = found; } else { const nameMatch = originalName.match(/(.*\D+)(\d*)/); @@ -411,7 +411,7 @@ export default mixins( if (nameIndex !== '') { index = parseInt(nameIndex, 10); } - uniqueName = baseName = originalName; + uniqueName = baseName; } }