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
|
options.value = props.global
|
||||||
? props.nodeModel
|
? props.nodeModel
|
||||||
.get_up_node_field_list(false, true)
|
.get_up_node_field_list(false, true)
|
||||||
.filter((v: any) => ['global', 'chat'].includes(v.value))
|
.map((v: any) => {
|
||||||
: props.nodeModel.get_up_node_field_list(false, true)
|
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
Block a user