: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): allow conversion window field to clear (#74623)
Anders4f9b93fcd21b
diff --git a/frontend/src/scenes/experiments/ExperimentMetricConversionWindowFilter.tsx b/frontend/src/scenes/experiments/ExperimentMetricConversionWindowFilter.tsxindex f88d09b5bc40..54f210e767af 100644--- a/frontend/src/scenes/experiments/ExperimentMetricConversionWindowFilter.tsx+++ b/frontend/src/scenes/experiments/ExperimentMetricConversionWindowFilter.tsx@@ -74,7 +74,8 @@ export function ExperimentMetricConversionWindowFilter({fullWidth={false}min={intervalBounds[0]}max={intervalBounds[1]}- value={metric.conversion_window || 1}+ // NaN renders as empty and keeps the input controlled; undefined would not+ value={metric.conversion_window ?? NaN}onChange={(value) => {handleSetMetric({ ...metric, conversion_window: value || undefined })}}