fix data table

This commit is contained in:
natib21
2026-06-20 07:53:23 +00:00
parent 6c640f3dc7
commit 97feb7b66b

View File

@@ -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({