chore: improve node user experience (#4792)

This commit is contained in:
Joel 2024-05-30 10:53:02 +08:00 • committed by GitHub
commit d41c077fac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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
}