From 6bc1d88c4ffbc3f49bb4765d8bc01b7c6c1f527a Mon Sep 17 00:00:00 2001 From: unocelli Date: Fri, 24 Nov 2023 13:08:18 +0100 Subject: [PATCH] fixed page switch from side menu #978 --- client/src/app/home/home.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/home/home.component.ts b/client/src/app/home/home.component.ts index 38fc3d292..9f83ff530 100644 --- a/client/src/app/home/home.component.ts +++ b/client/src/app/home/home.component.ts @@ -154,7 +154,7 @@ export class HomeComponent implements OnInit, AfterViewInit, OnDestroy { if (viewId === this.viewAsAlarms) { this.onAlarmsShowMode('expand'); this.checkToCloseSideNav(); - } else if (this.homeView && viewId !== this.homeView.id || force || !this.homeView) { + } else if (!this.homeView || viewId !== this.homeView?.id || force || this.fuxaview.view?.id !== viewId) { const view = this.hmi.views.find(x => x.id === viewId); this.setIframe(); this.showHomeLink = false;