Skip to content

Commit

Permalink
resolved conditions weights change not reflected in backend and in de…
Browse files Browse the repository at this point in the history
…tails page (#790)

Co-authored-by: danoswaltCL <[email protected]>
  • Loading branch information
ppratikcr7 and danoswaltCL authored Apr 20, 2023
1 parent d1ecf54 commit d4c59c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class ExperimentDesignStepperService {
}

getFactorialConditionTableData() {
return this.factorialConditionTableDataBehaviorSubject$.getValue();
return [...this.factorialConditionTableDataBehaviorSubject$.getValue()];
}

getSimpleExperimentPayloadTableData() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ export class FactorialExperimentDesignComponent implements OnInit, OnChanges, On
? { ...this.experimentInfo.factors[index], ...factor, order: order++ }
: { ...factor, order: order++ };
});

this.factorialConditions = this.experimentDesignStepperService.createFactorialConditionRequestObject();
const currentConditions =
this.factorialConditions.length > 0 ? this.factorialConditions : this.experimentInfo?.conditions;
const factorialConditionPayloads: ExperimentConditionPayloadRequestObject[] =
Expand Down

0 comments on commit d4c59c4

Please sign in to comment.