mirror of
https://github.com/dataease/dataease.git
synced 2026-06-17 04:51:43 +08:00
fix(图表): 透视表自定义汇总通过搜索添加的字段会报错 undefined
This commit is contained in:
@@ -78,7 +78,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
|
||||
}, {})
|
||||
|
||||
Reference in New Issue
Block a user