From bdaea076f5b826d7fe5dbd3df91be3fb5e440f56 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Wed, 26 Aug 2020 12:49:37 +0300 Subject: [PATCH] Fixed unclean state when changing the dashboard --- .../app/modules/home/pages/dashboard/dashboard-page.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-page.component.ts b/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-page.component.ts index 8df23a65e8..4658100be1 100644 --- a/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-page.component.ts +++ b/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-page.component.ts @@ -623,6 +623,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC public currentDashboardIdChanged(dashboardId: string) { if (!this.widgetEditMode) { + this.dashboardCtx.stateController.cleanupPreservedStates(); if (this.currentDashboardScope === 'customer' && this.authUser.authority === Authority.TENANT_ADMIN) { this.router.navigateByUrl(`customers/${this.currentCustomerId}/dashboards/${dashboardId}`); } else {