:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(experiments): stuck loading indicator on draft experiments (#72168)
Rodrigo Iloro136e149cc046
diff --git a/frontend/src/scenes/experiments/MetricsView/new/MetricsTable.tsx b/frontend/src/scenes/experiments/MetricsView/new/MetricsTable.tsxindex d2271f201a2d..cd3cff7c83b3 100644--- a/frontend/src/scenes/experiments/MetricsView/new/MetricsTable.tsx+++ b/frontend/src/scenes/experiments/MetricsView/new/MetricsTable.tsx@@ -104,11 +104,7 @@ export function MetricsTable({)}- /**- * Show this section's loader while any of its own metrics is loading: recalculating in place, or cold- * (no result and no error yet). Exposures load globally, so they count for whichever section has metrics.- */- const hasColdMetric = metrics.some((_, index) => !results[index] && !errors[index])+ const hasColdMetric = isLaunched(experiment) && metrics.some((_, index) => !results[index] && !errors[index])const sectionLoading =sectionHasRecalculatingMetric(metrics)(recalculatingMetricUuids) || hasColdMetric || exposuresLoading