Skip to content

Commit

Permalink
fix(insights): Fix breakdown value zero (#23387)
Browse files Browse the repository at this point in the history
  • Loading branch information
webjunkie authored Jul 3, 2024
1 parent d0824fe commit 21c456c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/hogql_queries/insights/funnels/funnel_trends.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _format_results(self, results) -> list[dict[str, Any]]:

if breakdown_clause:
breakdown_value = period_row[-1]
if breakdown_value is None or breakdown_value == [None]:
if breakdown_value in (None, [None], 0):
serialized_result.update({"breakdown_value": ["None"]})
elif isinstance(breakdown_value, str) or (
isinstance(breakdown_value, list) and all(isinstance(item, str) for item in breakdown_value)
Expand Down

0 comments on commit 21c456c

Please sign in to comment.