⚡ 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