From dfb995baf3970bd2c6fd6f57b8d8d72527b13504 Mon Sep 17 00:00:00 2001 From: Yagnik Hingrajiya <50392803+Yagnik56@users.noreply.github.com> Date: Tue, 26 Nov 2024 20:36:49 +0530 Subject: [PATCH] update filter mode when ALL row is removed in include table (#2131) --- .../experiment-participants.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/projects/upgrade/src/app/features/dashboard/home/components/experiment-participants/experiment-participants.component.ts b/frontend/projects/upgrade/src/app/features/dashboard/home/components/experiment-participants/experiment-participants.component.ts index 206e8949a3..afa98df7fd 100644 --- a/frontend/projects/upgrade/src/app/features/dashboard/home/components/experiment-participants/experiment-participants.component.ts +++ b/frontend/projects/upgrade/src/app/features/dashboard/home/components/experiment-participants/experiment-participants.component.ts @@ -304,6 +304,9 @@ export class ExperimentParticipantsComponent implements OnInit { } removeMember1(groupIndex: number) { + if (groupIndex === 0 && this.members1.controls.at(0).get('type').value === 'All') { + this.participantsForm.get('inclusionCriteria').setValue(INCLUSION_CRITERIA.INCLUDE_SPECIFIC); + } this.members1.removeAt(groupIndex); this.experimentDesignStepperService.experimentStepperDataChanged(); this.updateView1();