mirror of
https://github.com/apache/superset.git
synced 2026-04-16 14:45:21 +00:00
chore: make TS enums strictly PascalCase (#26875)
This commit is contained in:
@@ -310,7 +310,7 @@ export const useTableColumns = (
|
||||
const colType = coltypes?.[index];
|
||||
const firstValue = data[0][key];
|
||||
const originalFormattedTimeColumnIndex =
|
||||
colType === GenericDataType.TEMPORAL
|
||||
colType === GenericDataType.Temporal
|
||||
? originalFormattedTimeColumns.indexOf(key)
|
||||
: -1;
|
||||
const isOriginalTimeColumn =
|
||||
@@ -320,7 +320,7 @@ export const useTableColumns = (
|
||||
id: key || index,
|
||||
accessor: row => row[key],
|
||||
Header:
|
||||
colType === GenericDataType.TEMPORAL &&
|
||||
colType === GenericDataType.Temporal &&
|
||||
typeof firstValue !== 'string' ? (
|
||||
<DataTableTemporalHeaderCell
|
||||
columnName={key}
|
||||
@@ -342,7 +342,7 @@ export const useTableColumns = (
|
||||
return <CellNull>{NULL_DISPLAY}</CellNull>;
|
||||
}
|
||||
if (
|
||||
colType === GenericDataType.TEMPORAL &&
|
||||
colType === GenericDataType.Temporal &&
|
||||
originalFormattedTimeColumnIndex === -1 &&
|
||||
typeof value === 'number'
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user