fix data table

This commit is contained in:
natib21
2026-06-20 08:01:22 +00:00
parent 21884b674e
commit cde5525ed9

View File

@@ -20,6 +20,8 @@ export const formatFleetCell = (
format?: FleetColumnFormat,
accessorKey?: string,
): ReactNode => {
console.log('formatFleetCell:', { value, format, accessorKey, type: typeof value });
if (format === "statusBadge") {
const status = value == null || value === "" ? "—" : String(value);
return (
@@ -36,5 +38,7 @@ export const formatFleetCell = (
}
}
return formatRuleEngineCell(value, format as ColumnFormat | undefined);
const result = formatRuleEngineCell(value, format as ColumnFormat | undefined);
console.log('formatRuleEngineCell result for', accessorKey, ':', result);
return result;
};