From 6ba6ed065e0f6bb58037c675d7a5c178896f47c3 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Tue, 5 Aug 2025 15:17:32 +0800 Subject: [PATCH] fix: When the workflow session variable is not added, the dropdown option does not display the session variable attribute (#3816) --- ui/src/workflow/common/NodeCascader.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ui/src/workflow/common/NodeCascader.vue b/ui/src/workflow/common/NodeCascader.vue index 2843cb042..3ec184a13 100644 --- a/ui/src/workflow/common/NodeCascader.vue +++ b/ui/src/workflow/common/NodeCascader.vue @@ -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) } }