mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
⚡ Add braces to condition
This commit is contained in:
@@ -640,7 +640,9 @@ export const getUniqueNodeName = ({
|
||||
|
||||
if (found) {
|
||||
nameIndex = originalName.split(found).pop();
|
||||
if (nameIndex) index = parseInt(nameIndex, 10);
|
||||
if (nameIndex) {
|
||||
index = parseInt(nameIndex, 10);
|
||||
}
|
||||
baseName = uniqueName = found;
|
||||
} else {
|
||||
const nameMatch = originalName.match(/(.*\D+)(\d*)/);
|
||||
|
||||
Reference in New Issue
Block a user