mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix: tool var type error (#9937)
This commit is contained in:
parent
aafa4a3c8b
commit
705946cc40
|
@ -72,7 +72,7 @@ const InputVarList: FC<Props> = ({
|
|||
}
|
||||
else {
|
||||
draft[variable] = {
|
||||
type: varKindType,
|
||||
type: VarKindType.variable,
|
||||
value: varValue,
|
||||
}
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ const InputVarList: FC<Props> = ({
|
|||
value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])}
|
||||
onChange={handleNotMixedTypeChange(variable)}
|
||||
onOpen={handleOpen(index)}
|
||||
defaultVarKindType={varInput?.type}
|
||||
defaultVarKindType={VarKindType.variable}
|
||||
filterVar={isNumber ? filterVar : undefined}
|
||||
availableVars={isSelect ? availableVars : undefined}
|
||||
schema={schema}
|
||||
|
|
Loading…
Reference in New Issue
Block a user