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.
This commit is contained in:
anovazzi1 2023-09-18 18:44:42 -03:00
commit 3fc08cee93

View file

@ -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;
}