Fix: Use refetch for moderation actions

This commit is contained in:
gpt-engineer-app[bot]
2025-10-17 18:38:45 +00:00
parent 3209974fd0
commit b4ddea424b

View File

@@ -379,8 +379,8 @@ export function useModerationQueueManager(config: ModerationQueueManagerConfig):
// Refresh stats to update counts // Refresh stats to update counts
queue.refreshStats(); queue.refreshStats();
// Invalidate query cache to ensure fresh data on next refresh // Immediately refetch queue data to show fresh results
await queueQuery.invalidate(); await queueQuery.refetch();
} catch (error) { } catch (error) {
const errorMsg = getErrorMessage(error); const errorMsg = getErrorMessage(error);
console.error("Error moderating content:", errorMsg); console.error("Error moderating content:", errorMsg);