From 3d7d70b252c38c9ff7f5ab065f587f8731953eef Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Mon, 7 Apr 2025 18:56:04 +0800 Subject: [PATCH] fix: When the discriminator is true, there is no problem with the value --- 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 a775c83eb66..0cc1eaca8d4 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)