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 a5ae29cb86..2bf10ad785 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 @@ -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 }, {})