chore: improve node user experience (#4792)

This commit is contained in:
Joel
2024-05-30 10:53:02 +08:00
committed by GitHub
parent 3175a2c76a
commit d41c077fac
3 changed files with 14 additions and 10 deletions

View File

@@ -206,13 +206,14 @@ const formatItem = (item: any, isChatMode: boolean, filterVar: (payload: Var, se
case BlockEnum.ParameterExtractor: {
res.vars = [
...PARAMETER_EXTRACTOR_COMMON_STRUCT,
...((data as ParameterExtractorNodeType).parameters || []).map((p) => {
return {
variable: p.name,
type: p.type as unknown as VarType,
}
})]
}),
...PARAMETER_EXTRACTOR_COMMON_STRUCT,
]
break
}