mirror of https://github.com/langgenius/dify.git
fix: loop not choose bool var value
This commit is contained in:
parent
ff9d051635
commit
5fbeb275b2
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue