Skip to content

Commit

Permalink
fix(lifecycle): Bring back date grouping (#13398)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar authored Dec 19, 2022
1 parent 3f93f93 commit cba25a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/scenes/insights/InsightDisplayConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
isStickinessFilter,
isTrendsFilter,
isAreaChartDisplay,
isLifecycleFilter,
} from 'scenes/insights/sharedUtils'
interface InsightDisplayConfigProps {
filters: FilterType
Expand All @@ -40,6 +41,11 @@ const showIntervalFilter = function (filter: Partial<FilterType>): boolean {
if (isRetentionFilter(filter) || isPathsFilter(filter)) {
return false
}

if (isLifecycleFilter(filter)) {
return true
}

return (
(isTrendsFilter(filter) || isStickinessFilter(filter)) &&
(!filter.display || !NON_TIME_SERIES_DISPLAY_TYPES.includes(filter.display))
Expand Down

0 comments on commit cba25a9

Please sign in to comment.