diff --git a/frontend/__snapshots__/scenes-other-onboarding--onboarding-billing--light.png b/frontend/__snapshots__/scenes-other-onboarding--onboarding-billing--light.png index e6dc417f76bf5..4b585cd967c47 100644 Binary files a/frontend/__snapshots__/scenes-other-onboarding--onboarding-billing--light.png and b/frontend/__snapshots__/scenes-other-onboarding--onboarding-billing--light.png differ diff --git a/frontend/src/scenes/funnels/FunnelLineGraph.tsx b/frontend/src/scenes/funnels/FunnelLineGraph.tsx index 10f17fff3d402..544b833326909 100644 --- a/frontend/src/scenes/funnels/FunnelLineGraph.tsx +++ b/frontend/src/scenes/funnels/FunnelLineGraph.tsx @@ -11,6 +11,7 @@ import { isInsightQueryNode } from '~/queries/utils' import { ChartParams, GraphDataset, GraphType } from '~/types' import { funnelDataLogic } from './funnelDataLogic' +import { funnelPersonsModalLogic } from './funnelPersonsModalLogic' const LineGraphWrapper = ({ inCardView, children }: { inCardView?: boolean; children: JSX.Element }): JSX.Element => { if (inCardView) { @@ -23,16 +24,18 @@ const LineGraphWrapper = ({ inCardView, children }: { inCardView?: boolean; chil export function FunnelLineGraph({ inCardView, inSharedMode, - showPersonsModal = true, + showPersonsModal: showPersonsModalProp = true, }: Omit): JSX.Element | null { const { insightProps } = useValues(insightLogic) const { indexedSteps, aggregationTargetLabel, incompletenessOffsetFromEnd, interval, querySource, insightData } = useValues(funnelDataLogic(insightProps)) + const { canOpenPersonModal } = useValues(funnelPersonsModalLogic(insightProps)) if (!isInsightQueryNode(querySource)) { return null } + const showPersonsModal = canOpenPersonModal && showPersonsModalProp const aggregationGroupTypeIndex = querySource.aggregation_group_type_index return (