From 32fae27c7a34297e16cab7f01c37064bd9ed1ba0 Mon Sep 17 00:00:00 2001 From: Jens Vannerum Date: Thu, 16 Jan 2025 12:28:48 +0100 Subject: [PATCH] 124382: fix issue where scoped browse by would not init correct components --- .../sections/comcol-browse-by/comcol-browse-by.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/shared/comcol/sections/comcol-browse-by/comcol-browse-by.component.ts b/src/app/shared/comcol/sections/comcol-browse-by/comcol-browse-by.component.ts index 35d292c5f7f..67fc9ae792e 100644 --- a/src/app/shared/comcol/sections/comcol-browse-by/comcol-browse-by.component.ts +++ b/src/app/shared/comcol/sections/comcol-browse-by/comcol-browse-by.component.ts @@ -26,7 +26,7 @@ import { BrowseDefinition } from '../../../../core/shared/browse-definition.mode }) export class ComcolBrowseByComponent implements OnInit { - browseByType$: Observable; + browseByType$: Observable<{type: BrowseByDataType }>; scope$: Observable; @@ -40,7 +40,7 @@ export class ComcolBrowseByComponent 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() })), ); this.scope$ = this.route.data.pipe( map((data: Data) => data.scope),