From df32bc8aa44f06bd50f8a532683a9c55159104e1 Mon Sep 17 00:00:00 2001 From: wisonic Date: Mon, 2 Dec 2024 10:03:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=80=8F=E8=A7=86=E8=A1=A8=E8=87=AA=E5=AE=9A=E4=B9=89=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=AD=98=E5=9C=A8=E7=A9=BA=E6=95=B0=E6=8D=AE=E6=97=B6?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/table/table-pivot.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts index d7071b592a..108926b83c 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts @@ -533,7 +533,7 @@ function getCustomCalcResult(query, axisMap, chart: ChartObj, status: TotalStatu const rowPath = getTreePath(query, row) const colPath = getTreePath(query, col) const path = [...rowPath, ...colPath] - const { data } = colSubTotal?.[subLevel] + const data = colSubTotal?.[subLevel]?.data let val if (path.length && data) { path.push(quotaField) @@ -563,7 +563,7 @@ function getCustomCalcResult(query, axisMap, chart: ChartObj, status: TotalStatu const colPath = getTreePath(query, col) const rowPath = getTreePath(query, row) const path = [...colPath, ...rowPath] - const { data } = rowSubTotal?.[rowLevel] + const data = rowSubTotal?.[rowLevel]?.data let val if (path.length && rowSubTotal) { path.push(quotaField) @@ -602,7 +602,7 @@ function getCustomCalcResult(query, axisMap, chart: ChartObj, status: TotalStatu const { rowSubInColSub } = customCalc const rowSubLevel = getSubLevel(query, row) const colSubLevel = getSubLevel(query, col) - const { data } = rowSubInColSub?.[rowSubLevel]?.[colSubLevel] + const data = rowSubInColSub?.[rowSubLevel]?.[colSubLevel]?.data const rowPath = getTreePath(query, row) const colPath = getTreePath(query, col) const path = [...rowPath, ...colPath]