mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 21:15:55 +08:00
fix: agent strategy string type parameter default value invalid (#18185)
This commit is contained in:
parent
8cc37f3115
commit
da7c8621f7
@ -65,7 +65,7 @@ export const AgentStrategy = memo((props: AgentStrategyProps) => {
|
|||||||
switch (schema.type) {
|
switch (schema.type) {
|
||||||
case FormTypeEnum.textInput: {
|
case FormTypeEnum.textInput: {
|
||||||
const def = schema as CredentialFormSchemaTextInput
|
const def = schema as CredentialFormSchemaTextInput
|
||||||
const value = props.value[schema.variable]
|
const value = props.value[schema.variable] || schema.default
|
||||||
const onChange = (value: string) => {
|
const onChange = (value: string) => {
|
||||||
props.onChange({ ...props.value, [schema.variable]: value })
|
props.onChange({ ...props.value, [schema.variable]: value })
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user