瀏覽代碼

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

Loading…
取消
儲存