🐛 Fix number suffix in duplicate node (#2602)

* 🐛 Fix number suffix in duplicate node

* 🔥 Remove logging
This commit is contained in:
Iván Ovejero
2022-01-02 10:31:06 +01:00
committed by GitHub
parent 77970d85f0
commit 815e405148

View File

@@ -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;
}
}