Skip to content

Commit 2681d02

Browse files
authored
fix: When the discriminator is true, there is no problem with the value (#2814)
1 parent 5e43bb9 commit 2681d02

File tree

1 file changed

+1
-1
lines changed
  • ui/src/workflow/nodes/condition-node

1 file changed

+1
-1
lines changed

ui/src/workflow/nodes/condition-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ function deleteCondition(index: number, cIndex: number) {
326326
}
327327
328328
function changeCondition(val: string, index: number, cIndex: number) {
329-
if (val === 'is_null' || val === 'is_not_null') {
329+
if (['is_null', 'is_not_null', 'is_true', 'is_not_true'].includes(val)) {
330330
const list = cloneDeep(props.nodeModel.properties.node_data.branch)
331331
list[index]['conditions'][cIndex].value = 1
332332
set(props.nodeModel.properties.node_data, 'branch', list)

0 commit comments

Comments
 (0)