Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: changing period does not update sessions in the profile view

Blue Mouse88d33d513351
diff --git a/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx b/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx
index 55728eeb5..9245a232c 100644
--- a/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx
+++ b/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx
@@ -329,7 +329,7 @@ const ProfilesView = ({ tnMapping }: ProfilesViewProps) => {
profileTypeFilter,
])
- // Load single profile when profileId is set
+ // Reload active profile when query context changes (period, date range, filters, etc.)
useEffect(() => {
if (!activeProfileId || !project) {
return
@@ -337,7 +337,16 @@ const ProfilesView = ({ tnMapping }: ProfilesViewProps) => {
loadProfile(activeProfileId)
// eslint-disable-next-line react-hooks/exhaustive-deps
- }, [activeProfileId, project])
+ }, [
+ activeProfileId,
+ project,
+ period,
+ dateRange,
+ timezone,
+ filters,
+ projectPassword,
+ id,
+ ])
// Reset profiles when navigating away from profile detail
useEffect(() => {