Skip to content

Commit

Permalink
resolved issue of zero weight replaced by undefined (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yagnik56 authored Aug 9, 2023
1 parent 95c2f9e commit 4265cdd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ export class ExperimentDesignComponent implements OnInit, OnChanges, OnDestroy {
this.conditions.controls.forEach((control, index) => {
const assignmentWeightFormControl = control.get(SIMPLE_EXP_CONSTANTS.FORM_CONTROL_NAMES.ASSIGNMENT_WEIGHT);
assignmentWeightFormControl.setValue(
control.value.assignmentWeight ? control.value.assignmentWeight : this.previousAssignmentWeightValues[index]
control.value.assignmentWeight ? control.value.assignmentWeight : 0
);
if (this.isExperimentEditable) {
assignmentWeightFormControl.enable();
Expand Down

0 comments on commit 4265cdd

Please sign in to comment.