From 5352f2624544db791fce34204f934242816dbda5 Mon Sep 17 00:00:00 2001 From: Jens Vannerum Date: Mon, 16 Dec 2024 14:33:23 +0100 Subject: [PATCH] 121787: wrap the values in browseByType$ in a singleton object so that same-type browses still cause a lifecycle trigger --- src/app/browse-by/browse-by-page/browse-by-page.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/browse-by/browse-by-page/browse-by-page.component.ts b/src/app/browse-by/browse-by-page/browse-by-page.component.ts index 1a204264d15..670b5a7711c 100644 --- a/src/app/browse-by/browse-by-page/browse-by-page.component.ts +++ b/src/app/browse-by/browse-by-page/browse-by-page.component.ts @@ -23,7 +23,7 @@ import { BrowseBySwitcherComponent } from '../browse-by-switcher/browse-by-switc }) export class BrowseByPageComponent implements OnInit { - browseByType$: Observable; + browseByType$: Observable<{type: BrowseByDataType }>; constructor( protected route: ActivatedRoute, @@ -35,7 +35,7 @@ export class BrowseByPageComponent implements OnInit { */ ngOnInit(): void { this.browseByType$ = this.route.data.pipe( - map((data: { browseDefinition: BrowseDefinition }) => data.browseDefinition.getRenderType()), + map((data: { browseDefinition: BrowseDefinition }) => ({ type: data.browseDefinition.getRenderType() })), ); }