From 3fc08cee9332aba1db6779f20767125daf0b4355 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 18 Sep 2023 18:44:42 -0300 Subject: [PATCH] chore(reactflowUtils.ts): add condition to hide code template with CustomComponent proxy in updateGroupNodeTemplate function The code in the updateGroupNodeTemplate function has been modified to include a condition that checks if the type is "code" and if the template's proxy ID includes "CustomComponent". If both conditions are met, the show property of the template is set to false. This change was made to hide the code template with the CustomComponent proxy in the React Flow application. --- src/frontend/src/utils/reactflowUtils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index b69e61351..9ddfa5dcb 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -534,6 +534,9 @@ function updateGroupNodeTemplate(template: APITemplateType) { ) { template[key].advanced = true; } + if(type==="code" && template[key].proxy?.id.includes("CustomComponent")){ + template[key].show = false; + } }); return template; }