Commit bdaea076f5b826d7fe5dbd3df91be3fb5e440f56
1 parent
d166be02
Fixed unclean state when changing the dashboard
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -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 { |