fix: 修复选择变量时没显示变量名的问题

This commit is contained in:
CaptainB 2024-10-23 16:44:22 +08:00
parent ee9fb8be95
commit 0c6e4b73b8

View File

@ -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]
}