Merge pull request #7855 from dataease/pr@dev@fix_pivot_del_quota

fix(视图-透视表): 指标字段清空时渲染失败
This commit is contained in:
wisonic-s 2024-01-26 11:13:58 +08:00 committed by GitHub
commit 2d9a611ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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