mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
fix: tool var type error (#9937)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user