Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Mar 19, 2024
1 parent 3b34206 commit 12ae985
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions posthog/hogql_queries/insights/trends/trends_query_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,12 +721,15 @@ def _event_property(
group_type_index: Optional[int],
) -> str:
try:
return PropertyDefinition.objects.get(
name=field,
team=self.team,
type=field_type,
group_type_index=group_type_index if field_type == PropertyDefinition.Type.GROUP else None,
).property_type
return (
PropertyDefinition.objects.get(
name=field,
team=self.team,
type=field_type,
group_type_index=group_type_index if field_type == PropertyDefinition.Type.GROUP else None,
).property_type
or "String"
)
except PropertyDefinition.DoesNotExist:
return "String"

Expand Down

0 comments on commit 12ae985

Please sign in to comment.