Skip to content

Commit

Permalink
Fix none access
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Apr 26, 2024
1 parent 1503e20 commit cd213da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion posthog/hogql_queries/insights/trends/trends_query_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,11 @@ def apply_dashboard_filters(self, dashboard_filter: DashboardFilter) -> Runnable
if updated_query.breakdownFilter:
updated_query.breakdownFilter.breakdown_limit = None

if updated_query.trendsFilter.compare and dashboard_filter.date_from == "all":
if (
updated_query.trendsFilter is not None
and updated_query.trendsFilter.compare
and dashboard_filter.date_from == "all"
):
updated_query.trendsFilter.compare = False

return updated_query

0 comments on commit cd213da

Please sign in to comment.