Skip to content

Commit 6ba6ed0

Browse files
authored
fix: When the workflow session variable is not added, the dropdown option does not display the session variable attribute (#3816)
1 parent f668daa commit 6ba6ed0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ui/src/workflow/common/NodeCascader.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,16 @@ function visibleChange(bool: boolean) {
5353
options.value = props.global
5454
? props.nodeModel
5555
.get_up_node_field_list(false, true)
56-
.filter((v: any) => ['global', 'chat'].includes(v.value))
57-
: props.nodeModel.get_up_node_field_list(false, true)
56+
.map((v: any) => {
57+
console.log(v)
58+
return v
59+
})
60+
.filter(
61+
(v: any) => ['global', 'chat'].includes(v.value) && v.children && v.children.length > 0,
62+
)
63+
: props.nodeModel
64+
.get_up_node_field_list(false, true)
65+
.filter((v: any) => v.children && v.children.length > 0)
5866
}
5967
}
6068

0 commit comments

Comments
 (0)