fix: When the discriminator is true, there is no problem with the value (#2814)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2025-04-07 18:56:58 +08:00 committed by GitHub
parent 5e43bb9d2a
commit 2681d02728
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)