Skip to content

Commit

Permalink
124382: fix issue where scoped browse by would not init correct compo…
Browse files Browse the repository at this point in the history
…nents
  • Loading branch information
Jens Vannerum committed Jan 16, 2025
1 parent 76ae286 commit 32fae27
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { BrowseDefinition } from '../../../../core/shared/browse-definition.mode
})
export class ComcolBrowseByComponent implements OnInit {

browseByType$: Observable<BrowseByDataType>;
browseByType$: Observable<{type: BrowseByDataType }>;

scope$: Observable<string>;

Expand All @@ -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),
Expand Down

0 comments on commit 32fae27

Please sign in to comment.