mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
🐛 Fix number suffix in duplicate node (#2602)
* 🐛 Fix number suffix in duplicate node * 🔥 Remove logging
This commit is contained in:
@@ -396,7 +396,7 @@ export default mixins(
|
|||||||
if (nameIndex) {
|
if (nameIndex) {
|
||||||
index = parseInt(nameIndex, 10);
|
index = parseInt(nameIndex, 10);
|
||||||
}
|
}
|
||||||
baseName = uniqueName = originalName;
|
baseName = uniqueName = found;
|
||||||
} else {
|
} else {
|
||||||
const nameMatch = originalName.match(/(.*\D+)(\d*)/);
|
const nameMatch = originalName.match(/(.*\D+)(\d*)/);
|
||||||
|
|
||||||
@@ -411,7 +411,7 @@ export default mixins(
|
|||||||
if (nameIndex !== '') {
|
if (nameIndex !== '') {
|
||||||
index = parseInt(nameIndex, 10);
|
index = parseInt(nameIndex, 10);
|
||||||
}
|
}
|
||||||
uniqueName = baseName = originalName;
|
uniqueName = baseName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user