From f421eb2e7afe1fd1f1df73a7c17bd3b50460f7e6 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Fri, 26 Jan 2024 11:12:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=86=E5=9B=BE-=E9=80=8F=E8=A7=86?= =?UTF-8?q?=E8=A1=A8):=20=E6=8C=87=E6=A0=87=E5=AD=97=E6=AE=B5=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E6=97=B6=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 --- core/frontend/src/views/chart/chart/table/table-info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/frontend/src/views/chart/chart/table/table-info.js b/core/frontend/src/views/chart/chart/table/table-info.js index 93a3812711..644267e507 100644 --- a/core/frontend/src/views/chart/chart/table/table-info.js +++ b/core/frontend/src/views/chart/chart/table/table-info.js @@ -854,7 +854,7 @@ function getFieldValueMap(view) { } function customCalcFunc(query, data, totalCfgMap) { - if (!data?.length) { + if (!data?.length || !query[EXTRA_FIELD]) { return 0 } const aggregation = totalCfgMap[query[EXTRA_FIELD]].aggregation