Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(insights): keep interval-only dashboard override when opening insight (#71845)

Thomas Obermüllerf1c60266472a
diff --git a/frontend/src/scenes/dashboard/dashboardFilterEmpty.test.ts b/frontend/src/scenes/dashboard/dashboardFilterEmpty.test.ts
index 0b9f31f4b3e8..eba49ee484ea 100644
--- a/frontend/src/scenes/dashboard/dashboardFilterEmpty.test.ts
+++ b/frontend/src/scenes/dashboard/dashboardFilterEmpty.test.ts
@@ -34,6 +34,7 @@ describe('isDashboardFilterEmpty', () => {
},
],
['breakdown_filter set', { breakdown_filter: { breakdown: 'browser' } }],
+ ['interval set', { interval: 'week' }],
]
test.each(nonEmptyCases)('returns false for %s', (_, filter) => {
diff --git a/frontend/src/scenes/dashboard/dashboardFilterEmpty.ts b/frontend/src/scenes/dashboard/dashboardFilterEmpty.ts
index b52914dc5ee7..bdaa0ed3d1da 100644
--- a/frontend/src/scenes/dashboard/dashboardFilterEmpty.ts
+++ b/frontend/src/scenes/dashboard/dashboardFilterEmpty.ts
@@ -7,6 +7,7 @@ export function isDashboardFilterEmpty(filter: DashboardFilter | TileFilters | n
(filter.date_from == null &&
filter.date_to == null &&
(filter.properties == null || (Array.isArray(filter.properties) && filter.properties.length === 0)) &&
- filter.breakdown_filter == null)
+ filter.breakdown_filter == null &&
+ filter.interval == null)
)
}