mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge pull request #3845 from atmire/issue-3840-scoped-browse-bys
Fix issue where scoped browse by would not inititialze correct component
This commit is contained in:
@@ -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>;
|
||||
|
||||
@@ -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),
|
||||
|
Reference in New Issue
Block a user