fix(图表): 透视表自定义汇总通过搜索添加的字段会报错 undefined

This commit is contained in:
dataeaseShu
2025-09-05 11:37:11 +08:00
committed by dataeaseShu
parent de6a574816
commit 1d0fcd3007

View File

@@ -77,7 +77,7 @@ const setFieldForm = () => {
const setNameIdTrans = (from, to, originName, name2Auto?: string[]) => {
let name2Id = originName
const nameIdMap = state.quotaData.reduce((pre, next) => {
const nameIdMap = [...quotaDataList].reduce((pre, next) => {
pre[next[from]] = next[to]
return pre
}, {})