mirror of https://github.com/langgenius/dify.git
Update input-var-list.tsx (#9987)
This commit is contained in:
parent
6ded06c6d9
commit
7a00798027
|
|
@ -162,7 +162,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={varInput?.type || (isNumber ? VarKindType.constant : VarKindType.variable)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue