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:
parent
c61f622612
commit
3fc08cee93
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue