diff --git a/ui-ngx/src/app/modules/home/home.component.ts b/ui-ngx/src/app/modules/home/home.component.ts index e4e8e2f933..6e045b9786 100644 --- a/ui-ngx/src/app/modules/home/home.component.ts +++ b/ui-ngx/src/app/modules/home/home.component.ts @@ -124,6 +124,7 @@ export class HomeComponent extends PageComponent implements AfterViewInit, OnIni } activeComponentChanged(activeComponent: any) { + this.activeComponentService.setCurrentActiveComponent(activeComponent); if (!this.activeComponent) { setTimeout(() => { this.updateActiveComponent(activeComponent); @@ -138,7 +139,6 @@ export class HomeComponent extends PageComponent implements AfterViewInit, OnIni this.searchText = ''; this.activeComponent = activeComponent; this.hideLoadingBar = activeComponent && activeComponent instanceof RouterTabsComponent; - this.activeComponentService.setCurrentActiveComponent(activeComponent); if (this.activeComponent && instanceOfSearchableComponent(this.activeComponent)) { this.searchEnabled = true; this.searchableComponent = this.activeComponent;