mirror of
https://github.com/langgenius/dify.git
synced 2024-11-15 19:22:36 +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}
|
||||
isShowNodeName
|
||||
nodeId={nodeId}
|
||||
value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])}
|
||||
value={varInput?.type === VarKindType.constant ? (varInput?.value ?? '') : (varInput?.value ?? [])}
|
||||
onChange={handleNotMixedTypeChange(variable)}
|
||||
onOpen={handleOpen(index)}
|
||||
defaultVarKindType={VarKindType.variable}
|
||||
|
|
Loading…
Reference in New Issue
Block a user