浏览代码

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

tags/1.3.0
Junjie.M 6 个月前
父节点
当前提交
da7c8621f7
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      web/app/components/workflow/nodes/_base/components/agent-strategy.tsx

+ 1
- 1
web/app/components/workflow/nodes/_base/components/agent-strategy.tsx 查看文件

@@ -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 })
}

正在加载...
取消
保存