style(图表): Typos

This commit is contained in:
jianneng-fit2cloud 2024-11-06 15:16:03 +08:00
parent 7943ad5ebb
commit 6bffb5f676

View File

@ -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