Skip to content

Commit

Permalink
fix: import workflow errors (langgenius#6937)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola authored Aug 4, 2024
1 parent dff3f41 commit 7971534
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
Expand Down

0 comments on commit 7971534

Please sign in to comment.