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),