diff --git a/frontend/src/scenes/experiments/ExperimentPreview.tsx b/frontend/src/scenes/experiments/ExperimentPreview.tsx index 508967a52082b..928d4e6d3a97f 100644 --- a/frontend/src/scenes/experiments/ExperimentPreview.tsx +++ b/frontend/src/scenes/experiments/ExperimentPreview.tsx @@ -142,7 +142,10 @@ export function ExperimentPreview({ value={minimumDetectableChange} onChange={(value) => { setExperiment({ - parameters: { ...experiment.parameters, minimum_detectable_effect: value }, + parameters: { + ...experiment.parameters, + minimum_detectable_effect: value ?? undefined, + }, }) }} /> diff --git a/frontend/src/scenes/experiments/Experiments.tsx b/frontend/src/scenes/experiments/Experiments.tsx index c928f6a1d23aa..9bc342dcffb2d 100644 --- a/frontend/src/scenes/experiments/Experiments.tsx +++ b/frontend/src/scenes/experiments/Experiments.tsx @@ -226,12 +226,14 @@ export function Experiments(): JSX.Element { setSearchStatus(status as ProgressStatus | 'all') } }} - options={[ - { label: 'All', value: 'all' }, - { label: 'Draft', value: ProgressStatus.Draft }, - { label: 'Running', value: ProgressStatus.Running }, - { label: 'Complete', value: ProgressStatus.Complete }, - ]} + options={ + [ + { label: 'All', value: 'all' }, + { label: 'Draft', value: ProgressStatus.Draft }, + { label: 'Running', value: ProgressStatus.Running }, + { label: 'Complete', value: ProgressStatus.Complete }, + ] as { label: string; value: string }[] + } value="all" dropdownMaxContentWidth />