Skip to content

Commit 65376c7

Browse files
authored
fix(Table Chart): render null dates properly (#34558)
1 parent 4c2b27e commit 65376c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ import { formatColumnValue } from './utils/formatValue';
8989
import { PAGE_SIZE_OPTIONS, SERVER_PAGE_SIZE_OPTIONS } from './consts';
9090
import { updateTableOwnState } from './DataTable/utils/externalAPIs';
9191
import getScrollBarSize from './DataTable/utils/getScrollBarSize';
92+
import DateWithFormatter from './utils/DateWithFormatter';
9293

9394
type ValueRange = [number, number];
9495

@@ -934,7 +935,10 @@ export default function TableChart<D extends DataRecord = DataRecord>(
934935
},
935936
className: [
936937
className,
937-
value == null ? 'dt-is-null' : '',
938+
value == null ||
939+
(value instanceof DateWithFormatter && value.input == null)
940+
? 'dt-is-null'
941+
: '',
938942
isActiveFilterValue(key, value) ? ' dt-is-active-filter' : '',
939943
].join(' '),
940944
tabIndex: 0,

0 commit comments

Comments
 (0)