fix(parameterComponent/index.tsx): remove unnecessary ts-ignore comments
fix(reactflowUtils.ts): add input_types variable to prevent error when checking for advanced types
This commit is contained in:
parent
772bfbf1d3
commit
42f7821002
2 changed files with 2 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue