mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-28 23:32:48 +00:00
fix: 修复选择变量时没显示变量名的问题
This commit is contained in:
parent
ee9fb8be95
commit
0c6e4b73b8
|
|
@ -51,7 +51,7 @@ const getRefreshFieldList = () => {
|
|||
.filter((v: any) => v.id === 'base-node')
|
||||
.map((v: any) => cloneDeep(v.properties.api_input_field_list))
|
||||
.reduce((x: any, y: any) => [...x, ...y], [])
|
||||
.map((i: any) => ({ label: i.name, value: i.variable }))
|
||||
.map((i: any) => ({ label: i.name || i.variable, value: i.variable }))
|
||||
|
||||
return [...user_input_fields, ...api_input_fields]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue