diff --git a/packages/editor-ui/src/views/canvasHelpers.ts b/packages/editor-ui/src/views/canvasHelpers.ts index 742be9969c..492b0671c6 100644 --- a/packages/editor-ui/src/views/canvasHelpers.ts +++ b/packages/editor-ui/src/views/canvasHelpers.ts @@ -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*)/);