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