diff --git a/web/src/app/dashboard/audit-log/page.tsx b/web/src/app/dashboard/audit-log/page.tsx index c29adca52..5c0a6688c 100644 --- a/web/src/app/dashboard/audit-log/page.tsx +++ b/web/src/app/dashboard/audit-log/page.tsx @@ -225,7 +225,7 @@ export default function AuditLogPage() { useEffect(() => { if (!guildId) return; - void fetchAuditLog({ + fetchAuditLog({ guildId, action: actionFilter, userId: debouncedUserSearch, @@ -237,7 +237,7 @@ export default function AuditLogPage() { const handleRefresh = useCallback(() => { if (!guildId) return; - void fetchAuditLog({ + fetchAuditLog({ guildId, action: actionFilter, userId: debouncedUserSearch, diff --git a/web/src/app/dashboard/conversations/[conversationId]/page.tsx b/web/src/app/dashboard/conversations/[conversationId]/page.tsx index c83184a52..d142fd419 100644 --- a/web/src/app/dashboard/conversations/[conversationId]/page.tsx +++ b/web/src/app/dashboard/conversations/[conversationId]/page.tsx @@ -69,7 +69,7 @@ export default function ConversationDetailPage() { }, [guildId, conversationId, router]); useEffect(() => { - void fetchDetail(); + fetchDetail(); }, [fetchDetail]); return ( diff --git a/web/src/app/dashboard/conversations/conversations-client.tsx b/web/src/app/dashboard/conversations/conversations-client.tsx index 8dcc98e13..d11d4fcc2 100644 --- a/web/src/app/dashboard/conversations/conversations-client.tsx +++ b/web/src/app/dashboard/conversations/conversations-client.tsx @@ -238,7 +238,7 @@ export default function ConversationsClient() { useEffect(() => { if (!guildId) return; - void fetchConversations({ + fetchConversations({ guildId, search: debouncedSearch, channel: channelFilter, @@ -248,7 +248,7 @@ export default function ConversationsClient() { const handleRefresh = useCallback(() => { if (!guildId) return; - void fetchConversations({ + fetchConversations({ guildId, search: debouncedSearch, channel: channelFilter, diff --git a/web/src/app/dashboard/members/members-client.tsx b/web/src/app/dashboard/members/members-client.tsx index 46a21f2eb..68219193e 100644 --- a/web/src/app/dashboard/members/members-client.tsx +++ b/web/src/app/dashboard/members/members-client.tsx @@ -85,7 +85,7 @@ export default function MembersClient() { // Fetch on guild/search/sort change useEffect(() => { if (!guildId) return; - void runFetch({ + runFetch({ guildId, search: debouncedSearch, sortColumn, @@ -110,7 +110,7 @@ export default function MembersClient() { const handleLoadMore = useCallback(() => { if (!guildId || !nextAfter || loading) return; - void runFetch({ + runFetch({ guildId, search: debouncedSearch, sortColumn, @@ -123,7 +123,7 @@ export default function MembersClient() { const handleRefresh = useCallback(() => { if (!guildId) return; resetPagination(); - void runFetch({ + runFetch({ guildId, search: debouncedSearch, sortColumn, diff --git a/web/src/app/dashboard/temp-roles/page.tsx b/web/src/app/dashboard/temp-roles/page.tsx index 0ac112ce9..c132bdcf3 100644 --- a/web/src/app/dashboard/temp-roles/page.tsx +++ b/web/src/app/dashboard/temp-roles/page.tsx @@ -131,7 +131,7 @@ export default function TempRolesPage() { useEffect(() => { if (!guildId) return; - void fetchTempRoles(guildId, page); + fetchTempRoles(guildId, page); }, [guildId, page, fetchTempRoles]); const handleRevoke = useCallback( @@ -164,7 +164,7 @@ export default function TempRolesPage() { description: `Removed ${record.role_name} from ${record.user_tag}.`, }); // Refresh list - void fetchTempRoles(guildId, page); + fetchTempRoles(guildId, page); } catch { toast.error('Failed to revoke temp role', { description: 'A network error occurred. Please try again.', @@ -178,7 +178,7 @@ export default function TempRolesPage() { ); const handleRefresh = useCallback(() => { - if (guildId) void fetchTempRoles(guildId, page); + if (guildId) fetchTempRoles(guildId, page); }, [guildId, page, fetchTempRoles]); const rows = data?.data ?? []; diff --git a/web/src/app/dashboard/tickets/[ticketId]/page.tsx b/web/src/app/dashboard/tickets/[ticketId]/page.tsx index eab4f42a3..bba721294 100644 --- a/web/src/app/dashboard/tickets/[ticketId]/page.tsx +++ b/web/src/app/dashboard/tickets/[ticketId]/page.tsx @@ -87,7 +87,7 @@ export default function TicketDetailPage() { }, [guildId, ticketId, router]); useEffect(() => { - void fetchDetail(); + fetchDetail(); }, [fetchDetail]); return ( diff --git a/web/src/app/dashboard/tickets/tickets-client.tsx b/web/src/app/dashboard/tickets/tickets-client.tsx index e1d5e69aa..404484997 100644 --- a/web/src/app/dashboard/tickets/tickets-client.tsx +++ b/web/src/app/dashboard/tickets/tickets-client.tsx @@ -186,7 +186,7 @@ export default function TicketsClient() { useEffect(() => { if (!guildId) return; const controller = new AbortController(); - void fetchStats(guildId, controller.signal); + fetchStats(guildId, controller.signal); return () => controller.abort(); }, [guildId, fetchStats]); @@ -241,7 +241,7 @@ export default function TicketsClient() { useEffect(() => { if (!guildId) return; - void fetchTickets({ + fetchTickets({ guildId, status: statusFilter, user: debouncedSearch, @@ -251,8 +251,8 @@ export default function TicketsClient() { const handleRefresh = useCallback(() => { if (!guildId) return; - void fetchStats(guildId); - void fetchTickets({ + fetchStats(guildId); + fetchTickets({ guildId, status: statusFilter, user: debouncedSearch, diff --git a/web/src/components/dashboard/health-section.tsx b/web/src/components/dashboard/health-section.tsx index c08cfafe0..2a631a166 100644 --- a/web/src/components/dashboard/health-section.tsx +++ b/web/src/components/dashboard/health-section.tsx @@ -96,14 +96,14 @@ export function HealthSection() { // Initial fetch useEffect(() => { - void fetchHealth(); + fetchHealth(); return () => abortControllerRef.current?.abort(); }, [fetchHealth]); // Auto-refresh every 60s useEffect(() => { const intervalId = window.setInterval(() => { - void fetchHealth(true); + fetchHealth(true); }, AUTO_REFRESH_MS); return () => window.clearInterval(intervalId); }, [fetchHealth]); @@ -127,7 +127,7 @@ export function HealthSection() { variant="outline" size="sm" className="gap-2 self-start sm:self-auto" - onClick={() => void fetchHealth()} + onClick={() => fetchHealth()} disabled={loading} > @@ -141,7 +141,7 @@ export function HealthSection() { className="rounded-md border border-destructive/50 bg-destructive/10 p-4 text-sm text-destructive" > Failed to load health data: {error} - diff --git a/web/src/components/dashboard/performance-dashboard.tsx b/web/src/components/dashboard/performance-dashboard.tsx index 02325558a..98c03a229 100644 --- a/web/src/components/dashboard/performance-dashboard.tsx +++ b/web/src/components/dashboard/performance-dashboard.tsx @@ -171,13 +171,13 @@ export function PerformanceDashboard() { // Initial fetch useEffect(() => { - void fetchData(); + fetchData(); return () => abortRef.current?.abort(); }, [fetchData]); // Auto-refresh every 30s useEffect(() => { - const id = window.setInterval(() => void fetchData(true), AUTO_REFRESH_MS); + const id = window.setInterval(() => fetchData(true), AUTO_REFRESH_MS); return () => window.clearInterval(id); }, [fetchData]); @@ -209,7 +209,7 @@ export function PerformanceDashboard() { } setThresholdMsg('Thresholds saved.'); toast.success('Thresholds saved', { description: 'Alert thresholds updated successfully.' }); - void fetchData(true); + fetchData(true); } catch { setThresholdMsg('Error: Network failure'); toast.error('Failed to save thresholds', { description: 'A network error occurred.' }); @@ -271,7 +271,7 @@ export function PerformanceDashboard() { variant="outline" size="sm" className="gap-2" - onClick={() => void fetchData()} + onClick={() => fetchData()} disabled={loading} > @@ -286,7 +286,7 @@ export function PerformanceDashboard() { className="rounded-md border border-destructive/50 bg-destructive/10 p-4 text-sm text-destructive" > Failed to load performance data: {error} -