0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 00:47:50 +01:00

positive check

This commit is contained in:
Paolo D'Amico 2021-07-21 08:23:02 -05:00
parent 4281e2ecc4
commit cd610f9d4b

View File

@ -85,8 +85,7 @@ async function pollFunnel<T = FunnelStep[]>(apiParams: FunnelRequestParams): Pro
}
export const cleanFunnelParams = (filters: Partial<FilterType>, returnOnlyFunnelParams = false): FilterType => {
const breakdownEnabled =
filters.funnel_viz_type !== FunnelVizType.Trends && filters.funnel_viz_type !== FunnelVizType.TimeToConvert
const breakdownEnabled = filters.funnel_viz_type === FunnelVizType.Steps
return {
...(returnOnlyFunnelParams ? {} : filters),