diff --git a/web/app/components/workflow/nodes/_base/components/variable/utils.ts b/web/app/components/workflow/nodes/_base/components/variable/utils.ts index 715ad1c7b175ad..24c2b73fed2d25 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/utils.ts +++ b/web/app/components/workflow/nodes/_base/components/variable/utils.ts @@ -546,7 +546,9 @@ 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) + if (Array.isArray(curr)) + curr = curr?.find((v: any) => v.variable === key) + if (isLast) { type = curr?.type }