Skip to content

Commit

Permalink
fix(experiments): Fix displaying results for no-code experiment (#27444)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber authored Jan 10, 2025
1 parent 1fccf79 commit 347fccf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/scenes/experiments/MetricsView/MetricsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ export function MetricsView({ isSecondary }: { isSecondary?: boolean }): JSX.Ele
credibleIntervalForVariant,
} = useValues(experimentLogic)

const variants = experiment.parameters.feature_flag_variants
const variants = experiment?.feature_flag?.filters?.multivariate?.variants
if (!variants) {
return <></>
}
const results = isSecondary ? secondaryMetricResults : metricResults
const errors = isSecondary ? secondaryMetricsResultErrors : primaryMetricsResultErrors
const hasSomeResults = results?.some((result) => result?.insight)
Expand Down

0 comments on commit 347fccf

Please sign in to comment.