瀏覽代碼

fix: select struct output root object show the wrong type (#18582)

tags/1.3.0
Joel 6 月之前
父節點
當前提交
c6fb879cea
No account linked to committer's email address
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      web/app/components/workflow/nodes/_base/components/variable/utils.ts

+ 3
- 0
web/app/components/workflow/nodes/_base/components/variable/utils.ts 查看文件

@@ -772,6 +772,9 @@ export const getVarType = ({

const isStructuredOutputVar = !!targetVar.children?.schema?.properties
if (isStructuredOutputVar) {
if (valueSelector.length === 2) { // root
return VarType.object
}
let currProperties = targetVar.children.schema;
(valueSelector as ValueSelector).slice(2).forEach((key, i) => {
const isLast = i === valueSelector.length - 3

Loading…
取消
儲存