diff --git a/superset-frontend/plugins/plugin-chart-table/src/DataTable/hooks/useSticky.tsx b/superset-frontend/plugins/plugin-chart-table/src/DataTable/hooks/useSticky.tsx index 6fd4d839ce66..067d071ee192 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/DataTable/hooks/useSticky.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/DataTable/hooks/useSticky.tsx @@ -237,7 +237,7 @@ function StickyWrap({ const colWidths = columnWidths?.slice(0, columnCount); if (colWidths && bodyHeight) { - const bodyColgroup = ( + const colgroup = ( {colWidths.map((w, i) => ( // eslint-disable-next-line react/no-array-index-key @@ -246,23 +246,6 @@ function StickyWrap({ ); - // header columns do not have vertical scroll bars, - // so we add scroll bar size to the last column - const headerColgroup = - sticky.hasVerticalScroll && scrollBarSize ? ( - - {colWidths.map((x, i) => ( - // eslint-disable-next-line react/no-array-index-key - - ))} - - ) : ( - bodyColgroup - ); - headerTable = (