Browse Source

UI: Fixed dashboard page component

pull/13690/head
Vladyslav_Prykhodko 9 months ago
parent
commit
8126ef4875
  1. 4
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

4
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

@ -58,7 +58,7 @@ import {
} from '@app/shared/models/dashboard.models';
import { WINDOW } from '@core/services/window.service';
import { WindowMessage } from '@shared/models/window-message.model';
import { deepClean, deepClone, guid, isDefined, isDefinedAndNotNull, isNotEmptyStr } from '@app/core/utils';
import { deepClone, guid, isDefined, isDefinedAndNotNull, isNotEmptyStr } from '@app/core/utils';
import {
DashboardContext,
DashboardPageInitData,
@ -1225,7 +1225,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
this.setEditMode(false, false);
} else {
let reInitDashboard = false;
this.dashboard.configuration.timewindow = deepClean(this.dashboardCtx.dashboardTimewindow);
this.dashboard.configuration.timewindow = this.dashboardCtx.dashboardTimewindow;
this.dashboardService.saveDashboard(this.dashboard).pipe(
catchError((err) => {
if (err.status === HttpStatusCode.Conflict) {

Loading…
Cancel
Save