mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 15:49:09 +03:00
Merge pull request #16567 from supabase/fix/project-home-event-chart-end-timestamp-adjustment
fix: adjustment for project home bar chart click timestamp filtering
This commit is contained in:
1 file changed
+6
-2
@@ -67,8 +67,12 @@ const ProjectUsage = () => {
|
||||
// TODO (ziinc): link to edge logs with correct filter applied
|
||||
_type: 'rest' | 'realtime' | 'storage' | 'auth'
|
||||
) => {
|
||||
const selected = dayjs(value?.timestamp).toISOString()
|
||||
router.push(`/project/${projectRef}/logs/edge-logs?ite=${encodeURIComponent(selected)}`)
|
||||
const unit = selectedInterval.startUnit
|
||||
const selectedStart = dayjs(value?.timestamp)
|
||||
const selectedEnd = selectedStart.add(1, unit)
|
||||
router.push(
|
||||
`/project/${projectRef}/logs/edge-logs?ite=${encodeURIComponent(selectedEnd.toISOString())}`
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user