mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
🐛 Fix number suffix in duplicate node (#2602)
* 🐛 Fix number suffix in duplicate node * 🔥 Remove logging
This commit is contained in:
parent
77970d85f0
commit
815e405148
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue