mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: When the workflow session variable is not added, the dropdown option does not display the session variable attribute (#3816)
This commit is contained in:
parent
f668daa902
commit
6ba6ed065e
|
|
@ -53,8 +53,16 @@ function visibleChange(bool: boolean) {
|
|||
options.value = props.global
|
||||
? props.nodeModel
|
||||
.get_up_node_field_list(false, true)
|
||||
.filter((v: any) => ['global', 'chat'].includes(v.value))
|
||||
: props.nodeModel.get_up_node_field_list(false, true)
|
||||
.map((v: any) => {
|
||||
console.log(v)
|
||||
return v
|
||||
})
|
||||
.filter(
|
||||
(v: any) => ['global', 'chat'].includes(v.value) && v.children && v.children.length > 0,
|
||||
)
|
||||
: props.nodeModel
|
||||
.get_up_node_field_list(false, true)
|
||||
.filter((v: any) => v.children && v.children.length > 0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue