Pārlūkot izejas kodu

fix: import workflow errors (#6937)

tags/0.6.16
crazywoola pirms 1 gada
vecāks
revīzija
79715345ef
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 2
- 2
web/app/components/workflow/nodes/_base/components/variable/utils.ts Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt