Commit bdaea076f5b826d7fe5dbd3df91be3fb5e440f56

Authored by Vladyslav_Prykhodko
1 parent d166be02

Fixed unclean state when changing the dashboard

@@ -623,6 +623,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC @@ -623,6 +623,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
623 623
624 public currentDashboardIdChanged(dashboardId: string) { 624 public currentDashboardIdChanged(dashboardId: string) {
625 if (!this.widgetEditMode) { 625 if (!this.widgetEditMode) {
  626 + this.dashboardCtx.stateController.cleanupPreservedStates();
626 if (this.currentDashboardScope === 'customer' && this.authUser.authority === Authority.TENANT_ADMIN) { 627 if (this.currentDashboardScope === 'customer' && this.authUser.authority === Authority.TENANT_ADMIN) {
627 this.router.navigateByUrl(`customers/${this.currentCustomerId}/dashboards/${dashboardId}`); 628 this.router.navigateByUrl(`customers/${this.currentCustomerId}/dashboards/${dashboardId}`);
628 } else { 629 } else {