Skip to content

Commit

Permalink
fix: Fix breakdown_value not in list issue (#22983)
Browse files Browse the repository at this point in the history
  • Loading branch information
timgl authored Jun 14, 2024
1 parent 0d78e0f commit 645fc17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1851,7 +1851,7 @@ def test_to_actors_query_options(self):
IntervalType.DAY,
[EventsNode(event="$pageview")],
None,
None,
BreakdownFilter(breakdown_type=None, breakdown=None),
)
response = runner.to_actors_query_options()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def to_actors_query_options(self) -> InsightActorsQueryOptionsResponse:
]

# Breakdowns
if self.query.breakdownFilter is not None:
if self.query.breakdownFilter is not None and self.query.breakdownFilter.breakdown is not None:
res_breakdown = []
if self.query.breakdownFilter.breakdown_type == "cohort":
assert isinstance(self.query.breakdownFilter.breakdown, list)
Expand Down

0 comments on commit 645fc17

Please sign in to comment.