Selaa lähdekoodia

fix: import workflow errors (#6937)

tags/0.6.16
crazywoola 1 vuosi sitten
vanhempi
commit
79715345ef
No account linked to committer's email address

+ 2
- 2
web/app/components/workflow/nodes/_base/components/variable/utils.ts Näytä tiedosto

else { else {
(valueSelector as ValueSelector).slice(1).forEach((key, i) => { (valueSelector as ValueSelector).slice(1).forEach((key, i) => {
const isLast = i === valueSelector.length - 2 const isLast = i === valueSelector.length - 2
curr = curr.find((v: any) => v.variable === key)
curr = curr?.find((v: any) => v.variable === key)
if (isLast) { if (isLast) {
type = curr?.type type = curr?.type
} }
else { else {
if (curr.type === VarType.object)
if (curr?.type === VarType.object)
curr = curr.children curr = curr.children
} }
}) })

Loading…
Peruuta
Tallenna