mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-04 04:07:47 +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 {
|
else {
|
||||||
draft[variable] = {
|
draft[variable] = {
|
||||||
type: varKindType,
|
type: VarKindType.variable,
|
||||||
value: varValue,
|
value: varValue,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -171,7 +171,7 @@ const InputVarList: FC<Props> = ({
|
|||||||
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={varInput?.type}
|
defaultVarKindType={VarKindType.variable}
|
||||||
filterVar={isNumber ? filterVar : undefined}
|
filterVar={isNumber ? filterVar : undefined}
|
||||||
availableVars={isSelect ? availableVars : undefined}
|
availableVars={isSelect ? availableVars : undefined}
|
||||||
schema={schema}
|
schema={schema}
|
||||||
|
Loading…
Reference in New Issue
Block a user