mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Fix page path
This commit is contained in:
1 parent
c6011e1d27
commit
9dbdfcce6c
1 file changed
+2
-2
@@ -81,11 +81,11 @@ const sendActivity = (
|
||||
...(projectRef && { projectRef }),
|
||||
...(router.route.includes('/project/') &&
|
||||
!projectRef && {
|
||||
projectRef: router.route.split('/project/')[1].split('/')[0],
|
||||
projectRef: router.asPath.split('/project/')[1].split('/')[0],
|
||||
}),
|
||||
...(orgId && { orgId }),
|
||||
...(router.route.includes('/org/') &&
|
||||
!orgId && { orgId: router.route.split('/org/')[1].split('/')[0] }),
|
||||
!orgId && { orgId: router.asPath.split('/org/')[1].split('/')[0] }),
|
||||
}
|
||||
return post(`${API_URL}/telemetry/activity`, properties)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user