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, size: col.size || 150,
minSize: col.size ? Math.max(col.size - 20, 80) : 80, minSize: col.size ? Math.max(col.size - 20, 80) : 80,
meta: { headerClassName, cellClassName }, meta: { headerClassName, cellClassName },
cell: ({ row }) => cell: ({ row }) => {
formatFleetCell( const value = (row.original as unknown as Record<string, unknown>)[col.accessorKey];
(row.original as unknown as Record<string, unknown>)[col.accessorKey], if (pagedRows.length > 0 && row.index === 0) {
col.format, console.log(`Column ${col.accessorKey}:`, { value, row: row.original });
col.accessorKey, }
), return formatFleetCell(value, col.format, col.accessorKey);
},
})); }));
base.push({ base.push({