mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 16:28:12 +00:00
fix data table
This commit is contained in:
@@ -20,6 +20,8 @@ export const formatFleetCell = (
|
|||||||
format?: FleetColumnFormat,
|
format?: FleetColumnFormat,
|
||||||
accessorKey?: string,
|
accessorKey?: string,
|
||||||
): ReactNode => {
|
): ReactNode => {
|
||||||
|
console.log('formatFleetCell:', { value, format, accessorKey, type: typeof value });
|
||||||
|
|
||||||
if (format === "statusBadge") {
|
if (format === "statusBadge") {
|
||||||
const status = value == null || value === "" ? "—" : String(value);
|
const status = value == null || value === "" ? "—" : String(value);
|
||||||
return (
|
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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user