From 1e63ca3d6a19cda9ee85fe458c7dee5edf48fa10 Mon Sep 17 00:00:00 2001 From: Chantsova Ekaterina Date: Wed, 4 Sep 2024 18:50:12 +0300 Subject: [PATCH] UI: fix cancelling timewindow config change --- .../app/shared/components/time/timewindow-panel.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-ngx/src/app/shared/components/time/timewindow-panel.component.ts b/ui-ngx/src/app/shared/components/time/timewindow-panel.component.ts index c5bc43c91c..283d655a49 100644 --- a/ui-ngx/src/app/shared/components/time/timewindow-panel.component.ts +++ b/ui-ngx/src/app/shared/components/time/timewindow-panel.component.ts @@ -32,7 +32,7 @@ import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms'; import { TimeService } from '@core/services/time.service'; -import { isDefined } from '@core/utils'; +import { deepClone, isDefined } from '@core/utils'; import { OverlayRef } from '@angular/cdk/overlay'; import { ToggleHeaderOption } from '@shared/components/toggle-header.component'; import { TranslateService } from '@ngx-translate/core'; @@ -489,7 +489,7 @@ export class TimewindowPanelComponent extends PageComponent implements OnInit { data: { quickIntervalOnly: this.quickIntervalOnly, aggregation: this.aggregation, - timewindow: this.timewindow + timewindow: deepClone(this.timewindow) } }).afterClosed() .subscribe((res) => {