fix data table

This commit is contained in:
natib21
2026-06-20 07:57:49 +00:00
parent 555ff9d897
commit 21884b674e

View File

@@ -225,9 +225,7 @@ const FleetResourcePage = () => {
meta: { headerClassName, cellClassName },
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 });
}
console.log(`${col.accessorKey}:`, value, 'format:', col.format);
return formatFleetCell(value, col.format, col.accessorKey);
},
}));