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