mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 19:27:23 +08:00
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,
|
varType: varItem.type,
|
||||||
variable_selector: valueSelector,
|
variable_selector: valueSelector,
|
||||||
comparison_operator: getOperators(varItem.type, getIsVarFileAttribute(valueSelector) ? { key: valueSelector.slice(-1)[0] } : undefined)[0],
|
comparison_operator: getOperators(varItem.type, getIsVarFileAttribute(valueSelector) ? { key: valueSelector.slice(-1)[0] } : undefined)[0],
|
||||||
value: '',
|
value: varItem.type === VarType.boolean ? 'false' : '',
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
setInputs(newInputs)
|
setInputs(newInputs)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user