Skip to content

Commit

Permalink
fix(web-analytics): Fix opening session attribution explorer from web…
Browse files Browse the repository at this point in the history
… analytics dashboard (#27700)
  • Loading branch information
robbie-c authored Jan 20, 2025
1 parent 95798a2 commit 67e03d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/scenes/web-analytics/webAnalyticsLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export enum TileId {
export enum ProductTab {
ANALYTICS = 'analytics',
WEB_VITALS = 'web-vitals',
SESSION_ATTRIBUTION_EXPLORER = 'session-attribution-explorer',
}

export type WebVitalsPercentile = PropertyMathType.P75 | PropertyMathType.P90 | PropertyMathType.P99
Expand Down Expand Up @@ -2047,6 +2048,10 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
percentile,
}: Record<string, any>
): void => {
if (![ProductTab.ANALYTICS, ProductTab.WEB_VITALS].includes(productTab)) {
return
}

const parsedFilters = isWebAnalyticsPropertyFilters(filters) ? filters : undefined

if (parsedFilters && !objectsEqual(parsedFilters, values.webAnalyticsFilters)) {
Expand Down

0 comments on commit 67e03d8

Please sign in to comment.