소스 검색

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…
취소
저장