fix: import workflow errors (#6937)
This commit is contained in:
parent
dff3f41ef6
commit
79715345ef
1 changed files with 2 additions and 2 deletions
|
|
@ -404,12 +404,12 @@ export const getVarType = ({
|
||||||
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…
Add table
Add a link
Reference in a new issue