fix(dashboard): Cell behaviour in DataGrid (#8183)

This commit is contained in:
Kasper Fabricius Kristensen
2024-07-30 18:18:07 +02:00
committed by GitHub
parent fffd4f2b3b
commit 2967221e73
39 changed files with 2107 additions and 1034 deletions

View File

@@ -97,7 +97,7 @@ export function getFieldsInRange(
}
export function convertArrayToPrimitive<
T extends "boolean" | "number" | "string"
T extends "boolean" | "number" | "string",
>(values: string[], type: T) {
const convertedValues: any[] = []
@@ -222,10 +222,10 @@ export function getColumnName(column: Column<any, any>): string {
}
export function getColumnType(
cellId: string,
cell: CellCoords,
columns: Column<any, any>[]
): DataGridColumnType {
const { col } = parseCellId(cellId)
const { col } = cell
const column = columns[col]