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.
This commit is contained in:
anovazzi1 2023-10-04 21:46:34 -03:00
commit 15a6eb58b1

View file

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