mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44:06 -08:00
⚡ Add braces to condition
This commit is contained in:
parent
c81d47cb1a
commit
845b5e4d9b
|
@ -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*)/);
|
||||
|
|
Loading…
Reference in a new issue