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 6c8acb6709..82983fd5c8 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 @@ -1505,7 +1505,10 @@ export function configMergeCells(chart: Chart, options: S2Options, dataConfig: S } export function getRowIndex(mergedCellsInfo: MergedCellInfo[][], meta: ViewMeta): number { - let curRangeStartIndex = 0 + if (!mergedCellsInfo?.length) { + return meta.rowIndex + 1 + } + let curRangeStartIndex = meta.rowIndex const lostCells = mergedCellsInfo.reduce((p, n) => { if (n[0].colIndex !== 0) { return p