mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 10:52:53 +00:00
fix data table
This commit is contained in:
@@ -223,12 +223,13 @@ const FleetResourcePage = () => {
|
||||
size: col.size || 150,
|
||||
minSize: col.size ? Math.max(col.size - 20, 80) : 80,
|
||||
meta: { headerClassName, cellClassName },
|
||||
cell: ({ row }) =>
|
||||
formatFleetCell(
|
||||
(row.original as unknown as Record<string, unknown>)[col.accessorKey],
|
||||
col.format,
|
||||
col.accessorKey,
|
||||
),
|
||||
cell: ({ row }) => {
|
||||
const value = (row.original as unknown as Record<string, unknown>)[col.accessorKey];
|
||||
if (pagedRows.length > 0 && row.index === 0) {
|
||||
console.log(`Column ${col.accessorKey}:`, { value, row: row.original });
|
||||
}
|
||||
return formatFleetCell(value, col.format, col.accessorKey);
|
||||
},
|
||||
}));
|
||||
|
||||
base.push({
|
||||
|
||||
Reference in New Issue
Block a user