Bläddra i källkod

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

tags/1.3.0
Joel 6 månader sedan
förälder
incheckning
c6fb879cea
Inget konto är kopplat till bidragsgivarens mejladress

+ 3
- 0
web/app/components/workflow/nodes/_base/components/variable/utils.ts Visa fil

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

Laddar…
Avbryt
Spara