mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 13:31:12 -05:00
Fix: Use refetch for moderation actions
This commit is contained in:
@@ -379,8 +379,8 @@ export function useModerationQueueManager(config: ModerationQueueManagerConfig):
|
||||
// Refresh stats to update counts
|
||||
queue.refreshStats();
|
||||
|
||||
// Invalidate query cache to ensure fresh data on next refresh
|
||||
await queueQuery.invalidate();
|
||||
// Immediately refetch queue data to show fresh results
|
||||
await queueQuery.refetch();
|
||||
} catch (error) {
|
||||
const errorMsg = getErrorMessage(error);
|
||||
console.error("Error moderating content:", errorMsg);
|
||||
|
||||
Reference in New Issue
Block a user