mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: When the discriminator is true, there is no problem with the value (#2814)
This commit is contained in:
parent
5e43bb9d2a
commit
2681d02728
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue