mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 12:31:26 -05:00
Fix ReportsQueue build errors
This commit is contained in:
@@ -348,6 +348,11 @@ export const ReportsQueue = forwardRef<ReportsQueueRef>((props, ref) => {
|
||||
);
|
||||
}
|
||||
|
||||
// Apply client-side sorting
|
||||
const sortedReports = useMemo(() => {
|
||||
return sortReports(reports, sortConfig);
|
||||
}, [reports, sortConfig]);
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
{/* New Reports Notification */}
|
||||
@@ -419,10 +424,8 @@ export const ReportsQueue = forwardRef<ReportsQueueRef>((props, ref) => {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Apply sorting before rendering */}
|
||||
{useMemo(() => {
|
||||
const sortedReports = sortReports(reports, sortConfig);
|
||||
return sortedReports.map((report) => (
|
||||
{/* Report Cards */}
|
||||
{sortedReports.map((report) => (
|
||||
<Card key={report.id} className="border-l-4 border-l-red-500">
|
||||
<CardHeader className="pb-4">
|
||||
<div className="flex items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user