Bläddra i källkod

fix: agent strategy string type parameter default value invalid (#18185)

tags/1.3.0
Junjie.M 6 månader sedan
förälder
incheckning
da7c8621f7
Inget konto är kopplat till bidragsgivarens mejladress

+ 1
- 1
web/app/components/workflow/nodes/_base/components/agent-strategy.tsx Visa fil

@@ -65,7 +65,7 @@ export const AgentStrategy = memo((props: AgentStrategyProps) => {
switch (schema.type) {
case FormTypeEnum.textInput: {
const def = schema as CredentialFormSchemaTextInput
const value = props.value[schema.variable]
const value = props.value[schema.variable] || schema.default
const onChange = (value: string) => {
props.onChange({ ...props.value, [schema.variable]: value })
}

Laddar…
Avbryt
Spara