Skip to content

Commit e2aa031

Browse files
authored
Fix pause behavior to send revertTo as null for 'No Condition' option (#2944)
1 parent 1c8072d commit e2aa031

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/projects/upgrade/src/app/features/dashboard/experiments/modals/pause-experiment-modal/pause-experiment-modal.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface PauseExperimentModalParams {
2727

2828
export interface PauseExperimentModalResult {
2929
postExperimentRule: POST_EXPERIMENT_RULE;
30-
revertTo?: string;
30+
revertTo: string | null;
3131
}
3232

3333
@Component({
@@ -183,7 +183,7 @@ export class PauseExperimentModalComponent implements OnInit, OnDestroy {
183183
? POST_EXPERIMENT_RULE.CONTINUE
184184
: POST_EXPERIMENT_RULE.ASSIGN;
185185

186-
const revertTo = formValue.pauseBehavior === PAUSE_BEHAVIOR.ASSIGN ? formValue.revertTo : undefined;
186+
const revertTo = formValue.pauseBehavior === PAUSE_BEHAVIOR.ASSIGN ? formValue.revertTo : null;
187187

188188
const result: PauseExperimentModalResult = {
189189
postExperimentRule,

0 commit comments

Comments
 (0)