Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

polish: remove querying on mount

TzeYiing6e84d8e1364e
diff --git a/studio/hooks/analytics/useLogsQuery.tsx b/studio/hooks/analytics/useLogsQuery.tsx
index 159825c05a9..a9523b3951c 100644
--- a/studio/hooks/analytics/useLogsQuery.tsx
+++ b/studio/hooks/analytics/useLogsQuery.tsx
@@ -36,7 +36,7 @@ const useLogsQuery = (
isValidating: isLoading,
mutate,
} = useSWR<Logs>(
- `${API_URL}/projects/${projectRef}/analytics/endpoints/logs.all?${queryParams}`,
+ params.sql ? `${API_URL}/projects/${projectRef}/analytics/endpoints/logs.all?${queryParams}` : null,
get,
{ revalidateOnFocus: false }
)