Commit 31ebf4e6452d944ebedfa9af8b383d700cbda568

Authored by Igor Kulikov
1 parent 6cd7e3df

Fix state controller to not update state when stateId is not changed.

@@ -275,6 +275,7 @@ export class EntityStateControllerComponent extends StateControllerComponent imp @@ -275,6 +275,7 @@ export class EntityStateControllerComponent extends StateControllerComponent imp
275 } 275 }
276 276
277 private gotoState(stateId: string, update: boolean, openRightLayout?: boolean) { 277 private gotoState(stateId: string, update: boolean, openRightLayout?: boolean) {
  278 + update = update && this.dashboardCtrl.dashboardCtx.state !== stateId;
278 this.dashboardCtrl.openDashboardState(stateId, openRightLayout); 279 this.dashboardCtrl.openDashboardState(stateId, openRightLayout);
279 this.mobileService.handleDashboardStateName(this.getStateName(this.stateObject.length - 1)); 280 this.mobileService.handleDashboardStateName(this.getStateName(this.stateObject.length - 1));
280 if (update) { 281 if (update) {