From 15a6eb58b12a6ab686ea6b96d11f343e52f5ef03 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 4 Oct 2023 21:46:34 -0300 Subject: [PATCH] refactor(reactflowUtils.ts): remove unnecessary code that hides the "code" template for CustomComponent The code was removing the "code" template for CustomComponent by setting its "show" property to false. However, this code is no longer needed and has been removed to simplify the logic and improve maintainability. --- src/frontend/src/utils/reactflowUtils.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 5b730d5e7..cf6dd736c 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -553,12 +553,6 @@ function updateGroupNodeTemplate(template: APITemplateType) { ) { template[key].advanced = true; } - if ( - type === "code" && - template[key].proxy?.id.includes("CustomComponent") - ) { - template[key].show = false; - } }); return template; }