diff --git a/src/components/moderation/ReportsQueue.tsx b/src/components/moderation/ReportsQueue.tsx index f4aeab02..169a4c34 100644 --- a/src/components/moderation/ReportsQueue.tsx +++ b/src/components/moderation/ReportsQueue.tsx @@ -348,6 +348,11 @@ export const ReportsQueue = forwardRef((props, ref) => { ); } + // Apply client-side sorting + const sortedReports = useMemo(() => { + return sortReports(reports, sortConfig); + }, [reports, sortConfig]); + return (
{/* New Reports Notification */} @@ -419,10 +424,8 @@ export const ReportsQueue = forwardRef((props, ref) => { )}
- {/* Apply sorting before rendering */} - {useMemo(() => { - const sortedReports = sortReports(reports, sortConfig); - return sortedReports.map((report) => ( + {/* Report Cards */} + {sortedReports.map((report) => (