瀏覽代碼

fix: get property of string type variable caused page crash (#12969)

tags/0.15.3
Joel 9 月之前
父節點
當前提交
f565f08aa0
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      web/app/components/workflow/nodes/_base/components/variable/utils.ts

+ 3
- 1
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
}

Loading…
取消
儲存