diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/CustomAggrEdit.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/CustomAggrEdit.vue index 95408a8790..60a2a1eca2 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/CustomAggrEdit.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/table/CustomAggrEdit.vue @@ -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 }, {})