From 347fccf3f1878e2069099ca658099a770f2891d3 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Fri, 10 Jan 2025 12:15:44 -0800 Subject: [PATCH] fix(experiments): Fix displaying results for no-code experiment (#27444) --- frontend/src/scenes/experiments/MetricsView/MetricsView.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/scenes/experiments/MetricsView/MetricsView.tsx b/frontend/src/scenes/experiments/MetricsView/MetricsView.tsx index dc62d1d4e52c2..3a9aac3604d56 100644 --- a/frontend/src/scenes/experiments/MetricsView/MetricsView.tsx +++ b/frontend/src/scenes/experiments/MetricsView/MetricsView.tsx @@ -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)