From 06456930699cd2d630fe6f807c14505f01630eb5 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 23 Jun 2023 10:54:34 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(utils.ts):=20simplify=20tern?= =?UTF-8?q?ary=20operator=20in=20validateNode=20function=20The=20ternary?= =?UTF-8?q?=20operator=20in=20the=20validateNode=20function=20was=20simpli?= =?UTF-8?q?fied=20by=20removing=20the=20unnecessary=20if=20statement.=20Th?= =?UTF-8?q?e=20code=20is=20now=20more=20concise=20and=20easier=20to=20read?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/utils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/src/utils.ts b/src/frontend/src/utils.ts index d4c5d0190..9e83fc70f 100644 --- a/src/frontend/src/utils.ts +++ b/src/frontend/src/utils.ts @@ -749,9 +749,7 @@ export function validateNode( ) ? [ `${type} is missing ${ - template.display_name - ? template.display_name - : toNormalCase(template[t].name) + template.display_name || toNormalCase(template[t].name) }.`, ] : []