From 2681d02728de55301e810490dfa0e3475a01e09d Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 7 Apr 2025 18:56:58 +0800 Subject: [PATCH] fix: When the discriminator is true, there is no problem with the value (#2814) --- ui/src/workflow/nodes/condition-node/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/workflow/nodes/condition-node/index.vue b/ui/src/workflow/nodes/condition-node/index.vue index a775c83eb..0cc1eaca8 100644 --- a/ui/src/workflow/nodes/condition-node/index.vue +++ b/ui/src/workflow/nodes/condition-node/index.vue @@ -326,7 +326,7 @@ function deleteCondition(index: number, cIndex: number) { } function changeCondition(val: string, index: number, cIndex: number) { - if (val === 'is_null' || val === 'is_not_null') { + if (['is_null', 'is_not_null', 'is_true', 'is_not_true'].includes(val)) { const list = cloneDeep(props.nodeModel.properties.node_data.branch) list[index]['conditions'][cIndex].value = 1 set(props.nodeModel.properties.node_data, 'branch', list)