From 845b5e4d9b253cf9de148580b6b1ed7264ecdb2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 1 Dec 2021 09:44:56 +0100 Subject: [PATCH] :zap: Add braces to condition --- packages/editor-ui/src/views/canvasHelpers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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*)/);