We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f668daa commit 6ba6ed0Copy full SHA for 6ba6ed0
ui/src/workflow/common/NodeCascader.vue
@@ -53,8 +53,16 @@ function visibleChange(bool: boolean) {
53
options.value = props.global
54
? props.nodeModel
55
.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)
+ .map((v: any) => {
+ 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)
66
}
67
68
0 commit comments