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