From d4c59c4182ccce8e6110d0cde5e4932384606eee Mon Sep 17 00:00:00 2001 From: Pratik Prajapati <33730817+ppratikcr7@users.noreply.github.com> Date: Fri, 21 Apr 2023 02:01:40 +0530 Subject: [PATCH] resolved conditions weights change not reflected in backend and in details page (#790) Co-authored-by: danoswaltCL <97542869+danoswaltCL@users.noreply.github.com> --- .../experiment-design-stepper.service.ts | 2 +- .../factorial-experiment-design.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/projects/upgrade/src/app/core/experiment-design-stepper/experiment-design-stepper.service.ts b/frontend/projects/upgrade/src/app/core/experiment-design-stepper/experiment-design-stepper.service.ts index 7f90f65006..14a7d85261 100644 --- a/frontend/projects/upgrade/src/app/core/experiment-design-stepper/experiment-design-stepper.service.ts +++ b/frontend/projects/upgrade/src/app/core/experiment-design-stepper/experiment-design-stepper.service.ts @@ -136,7 +136,7 @@ export class ExperimentDesignStepperService { } getFactorialConditionTableData() { - return this.factorialConditionTableDataBehaviorSubject$.getValue(); + return [...this.factorialConditionTableDataBehaviorSubject$.getValue()]; } getSimpleExperimentPayloadTableData() { diff --git a/frontend/projects/upgrade/src/app/features/dashboard/home/components/factorial-experiment-design/factorial-experiment-design.component.ts b/frontend/projects/upgrade/src/app/features/dashboard/home/components/factorial-experiment-design/factorial-experiment-design.component.ts index 9399bf9963..1e009173c2 100644 --- a/frontend/projects/upgrade/src/app/features/dashboard/home/components/factorial-experiment-design/factorial-experiment-design.component.ts +++ b/frontend/projects/upgrade/src/app/features/dashboard/home/components/factorial-experiment-design/factorial-experiment-design.component.ts @@ -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[] =