Commit 31ebf4e6452d944ebedfa9af8b383d700cbda568
1 parent
6cd7e3df
Fix state controller to not update state when stateId is not changed.
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -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) { |