mirror of https://github.com/langgenius/dify.git
fix default value for multiple tool selector
This commit is contained in:
parent
84febd5e94
commit
0c5101fb3c
|
|
@ -355,7 +355,7 @@ function Form<
|
|||
label={label[language] || label.en_US}
|
||||
required={required}
|
||||
tooltip={tooltip?.[language] || tooltip?.en_US}
|
||||
value={value[variable]}
|
||||
value={value[variable] || []}
|
||||
onChange={item => handleFormChange(variable, item as any)}
|
||||
/>
|
||||
{fieldMoreInfo?.(formSchema)}
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ export const AgentStrategy = (props: AgentStrategyProps) => {
|
|||
return (
|
||||
<MultipleToolSelector
|
||||
scope={schema.scope}
|
||||
value={value}
|
||||
value={value || []}
|
||||
label={schema.label[language]}
|
||||
tooltip={schema.tooltip?.[language]}
|
||||
onChange={onChange}
|
||||
|
|
|
|||
Loading…
Reference in New Issue