Skip to content

Commit

Permalink
Merge pull request DSpace#3845 from atmire/issue-3840-scoped-browse-bys
Browse files Browse the repository at this point in the history
Fix issue where scoped browse by would not inititialze correct component
  • Loading branch information
tdonohue authored Jan 17, 2025
2 parents 76ae286 + 32fae27 commit b2a10e4
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 b2a10e4

Please sign in to comment.