fix: loop not choose bool var value

This commit is contained in:
Joel 2025-07-28 15:20:18 +08:00
parent ff9d051635
commit 5fbeb275b2
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ const useConfig = (id: string, payload: LoopNodeType) => {
varType: varItem.type,
variable_selector: valueSelector,
comparison_operator: getOperators(varItem.type, getIsVarFileAttribute(valueSelector) ? { key: valueSelector.slice(-1)[0] } : undefined)[0],
value: '',
value: varItem.type === VarType.boolean ? 'false' : '',
})
})
setInputs(newInputs)