mirror of
https://github.com/supabase/supabase.git
synced 2026-06-20 03:27:24 +08:00
default to last 24h in free, 7 days in paid (#35799)
This commit is contained in:
@@ -65,7 +65,9 @@ const ProjectUsage = () => {
|
||||
|
||||
const { plan } = useCurrentOrgPlan()
|
||||
|
||||
const [interval, setInterval] = useState<ProjectLogStatsVariables['interval']>('minutely')
|
||||
const DEFAULT_INTERVAL = plan?.id === 'free' ? 'hourly' : 'daily'
|
||||
|
||||
const [interval, setInterval] = useState<ProjectLogStatsVariables['interval']>(DEFAULT_INTERVAL)
|
||||
|
||||
const { data, isLoading } = useProjectLogStatsQuery({ projectRef, interval })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user