diff --git a/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx b/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx index d409670dc6d36..9739385f8f234 100644 --- a/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx +++ b/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx @@ -177,11 +177,12 @@ export function InsightLoadingState({ insightProps: InsightLogicProps }): JSX.Element { const { featureFlags } = useValues(featureFlagLogic) + const { suggestedSamplingPercentage, samplingPercentage } = useValues(samplingFilterLogic(insightProps)) + if (featureFlags[FEATURE_FLAGS.INSIGHT_LOADING_BAR]) { return } - const { suggestedSamplingPercentage, samplingPercentage } = useValues(samplingFilterLogic(insightProps)) return (