From 6bffb5f676ddecd856fd1fa2a30a1b037865e32c Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 6 Nov 2024 15:16:03 +0800 Subject: [PATCH] =?UTF-8?q?style(=E5=9B=BE=E8=A1=A8):=20Typos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/common/common_table.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts index 22120abd4a..7248f635e4 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts @@ -1431,11 +1431,11 @@ export function configMergeCells(chart: Chart, options: S2Options, dataConfig: S const { showIndex } = parseJson(chart.customAttr).tableHeader if (mergeCells) { const fields = chart.data.fields || [] - const fielsMap = fields.reduce((p, n) => { + const fieldMap = fields.reduce((p, n) => { p[n.dataeaseName] = n return p }, {}) || {} - const quotaIndex = dataConfig.meta.findIndex(m => fielsMap[m.field].groupType === 'q') + const quotaIndex = dataConfig.meta.findIndex(m => fieldMap[m.field].groupType === 'q') const data = chart.data?.tableRow if (quotaIndex === 0 || !data?.length) { return