From 31ebf4e6452d944ebedfa9af8b383d700cbda568 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Mon, 7 Jun 2021 12:25:12 +0300 Subject: [PATCH] Fix state controller to not update state when stateId is not changed. --- .../dashboard-page/states/entity-state-controller.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/states/entity-state-controller.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/states/entity-state-controller.component.ts index a21ce9ec78..e399e74529 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/states/entity-state-controller.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/states/entity-state-controller.component.ts @@ -275,6 +275,7 @@ export class EntityStateControllerComponent extends StateControllerComponent imp } private gotoState(stateId: string, update: boolean, openRightLayout?: boolean) { + update = update && this.dashboardCtrl.dashboardCtx.state !== stateId; this.dashboardCtrl.openDashboardState(stateId, openRightLayout); this.mobileService.handleDashboardStateName(this.getStateName(this.stateObject.length - 1)); if (update) {