This is an automated email from the ASF dual-hosted git repository. elizabeth pushed a commit to branch elizabeth/fix-resize-bug in repository https://gitbox.apache.org/repos/asf/superset.git
commit 933254eb60b88b8fb2ccbcbd4b7b8f0c8a685d69 Author: Pius Iniobong <[email protected]> AuthorDate: Fri Jul 25 13:31:33 2025 +0100 fix: preserve correct column order when table layout is changed with time comparison enabled (#34300) --- superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx index ca05cbb3bc..b701e2a356 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx @@ -629,7 +629,11 @@ export default function TableChart<D extends DataRecord = DataRecord>( const startPosition = value[0]; const colSpan = value.length; // Retrieve the originalLabel from the first column in this group - const originalLabel = columnsMeta[value[0]]?.originalLabel || key; + const firstColumnInGroup = filteredColumnsMeta[startPosition]; + const originalLabel = firstColumnInGroup + ? columnsMeta.find(col => col.key === firstColumnInGroup.key) + ?.originalLabel || key + : key; // Add placeholder <th> for columns before this header for (let i = currentColumnIndex; i < startPosition; i += 1) {
