mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
Update input-var-list.tsx
Fix problem that the picker can't support show zero
This commit is contained in:
parent
c8ef9223e5
commit
f2e1932228
|
@ -168,7 +168,7 @@ const InputVarList: FC<Props> = ({
|
||||||
readonly={readOnly}
|
readonly={readOnly}
|
||||||
isShowNodeName
|
isShowNodeName
|
||||||
nodeId={nodeId}
|
nodeId={nodeId}
|
||||||
value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])}
|
value={varInput?.type === VarKindType.constant ? (varInput?.value ?? '') : (varInput?.value ?? [])}
|
||||||
onChange={handleNotMixedTypeChange(variable)}
|
onChange={handleNotMixedTypeChange(variable)}
|
||||||
onOpen={handleOpen(index)}
|
onOpen={handleOpen(index)}
|
||||||
defaultVarKindType={VarKindType.variable}
|
defaultVarKindType={VarKindType.variable}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user