From 83271fa0e8b4019f0d591ecb89ecffbc4d4c0eb6 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Mon, 18 Sep 2023 22:59:40 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(reactflowUtils.ts):=20remove?= =?UTF-8?q?=20unnecessary=20condition=20for=20template[t].type=20to=20impr?= =?UTF-8?q?ove=20code=20readability=20and=20maintainability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/utils/reactflowUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 9ed4736c0..108871bb1 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -221,7 +221,7 @@ export function validateNode( ) { errors.push(`${type} is missing ${template.display_name || toNormalCase(template[t].name)}.`); } else if ( - (template[t].type === "dict" || template[t].type === "NestedDict") && + (template[t].type === "dict") && template[t].required && template[t].show && (template[t].value !== undefined ||