Update input-var-list.tsx

Fix problem that the picker can't support show zero
This commit is contained in:
左凌 2024-10-29 15:00:54 +08:00 committed by GitHub
parent c8ef9223e5
commit f2e1932228
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}