From baee1ab82b8bc845b01d0cd33f682dfbc4ac33dd Mon Sep 17 00:00:00 2001 From: Nicolas <48596976+nicob3y@users.noreply.github.com> Date: Tue, 9 Sep 2025 19:22:54 +0200 Subject: [PATCH] fix(Table Chart): render null dates properly (#34558) (cherry picked from commit 65376c7baf7e04b7657f46e5ef730aa3c900b100) --- .../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 dc829c7e2ff..53b56d59292 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx +++ b/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx @@ -89,6 +89,7 @@ import { formatColumnValue } from './utils/formatValue'; import { PAGE_SIZE_OPTIONS, SERVER_PAGE_SIZE_OPTIONS } from './consts'; import { updateTableOwnState } from './DataTable/utils/externalAPIs'; import getScrollBarSize from './DataTable/utils/getScrollBarSize'; +import DateWithFormatter from './utils/DateWithFormatter'; type ValueRange = [number, number]; @@ -936,7 +937,10 @@ export default function TableChart( }, className: [ className, - value == null ? 'dt-is-null' : '', + value == null || + (value instanceof DateWithFormatter && value.input == null) + ? 'dt-is-null' + : '', isActiveFilterValue(key, value) ? ' dt-is-active-filter' : '', ].join(' '), tabIndex: 0,