diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 3ea2c89e8..f41fa8068 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -115,7 +115,6 @@ export default function ParameterComponent({ let groupedObj = groupByFamily(myData, tooltipTitle!, left, flow!); if (groupedObj && groupedObj.length > 0) { - //@ts-ignore //@ts-ignore refHtml.current = groupedObj.map((item, index) => { const Icon: any = diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 6d0931392..f5018bc78 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -523,6 +523,7 @@ function updateGroupNodeTemplate(template: APITemplateType) { updating the visibility of all basic types setting it to advanced true*/ Object.keys(template).forEach((key) => { let type = template[key].type; + let input_types = template[key].input_types; if ( (type === "str" || type === "bool" || @@ -531,7 +532,7 @@ function updateGroupNodeTemplate(template: APITemplateType) { type === "prompt" || type === "file" || type === "int") && - !template[key].required + !template[key].required && !input_types ) { template[key].advanced = true; }