Skip to content

Commit

Permalink
fix(insights): Fix early exit hooks error from loading bar flag (#22433)
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes authored May 23, 2024
1 parent cc43c9c commit 739123b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <InsightLoadingStateWithLoadingBar queryId={queryId} insightProps={insightProps} />
}

const { suggestedSamplingPercentage, samplingPercentage } = useValues(samplingFilterLogic(insightProps))
return (
<div className="insight-empty-state warning">
<Animation type={AnimationType.LaptopHog} />
Expand Down

0 comments on commit 739123b

Please sign in to comment.