fix(视图-透视表): 指标字段清空时渲染失败
This commit is contained in:
parent
3ca63706b4
commit
f421eb2e7a
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user