mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(table-charts): Prevent time grain from altering Raw Records in Tables + Interactive Tables (#37561)
This commit is contained in:
@@ -356,8 +356,13 @@ export default function TableChart<D extends DataRecord = DataRecord>(
|
||||
);
|
||||
|
||||
const timestampFormatter = useCallback(
|
||||
value => getTimeFormatterForGranularity(timeGrain)(value),
|
||||
[timeGrain],
|
||||
(value: DataRecordValue) =>
|
||||
isRawRecords
|
||||
? String(value ?? '')
|
||||
: getTimeFormatterForGranularity(timeGrain)(
|
||||
value as number | Date | null | undefined,
|
||||
),
|
||||
[timeGrain, isRawRecords],
|
||||
);
|
||||
const [tableSize, setTableSize] = useState<TableSize>({
|
||||
width: 0,
|
||||
|
||||
Reference in New Issue
Block a user