Commit 0a53e2ff97339cbe812783a1f8b607234c287481

Authored by Igor Kulikov
Committed by GitHub
2 parents e5e103be bdaea076

Merge pull request #3370 from vvlladd28/improvmnet/minnor-fix

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 {