mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
Merge pull request #7854 from dataease/pr@dev-v2@fix_pivot_del_quota
fix(视图-透视表): 指标字段清空时渲染失败
This commit is contained in:
@@ -300,7 +300,7 @@ export class TablePivot extends S2ChartView<PivotSheet> {
|
||||
}
|
||||
}
|
||||
function customCalcFunc(query, data, totalCfgMap) {
|
||||
if (!data?.length) {
|
||||
if (!data?.length || !query[EXTRA_FIELD]) {
|
||||
return 0
|
||||
}
|
||||
const aggregation = totalCfgMap[query[EXTRA_FIELD]].aggregation
|
||||
|
||||
Reference in New Issue
Block a user