mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
121787: Get rid of multiple unnecessary requests on browse by pages
This commit is contained in:

committed by
Jens Vannerum

parent
b454e49553
commit
a105bcd6f4
@@ -24,7 +24,7 @@ export class BrowseBySwitcherComponent extends AbstractComponentLoaderComponent<
|
||||
|
||||
@Input() context: Context;
|
||||
|
||||
@Input() browseByType: BrowseByDataType;
|
||||
@Input() browseByType: { type: BrowseByDataType };
|
||||
|
||||
@Input() displayTitle: boolean;
|
||||
|
||||
@@ -43,7 +43,7 @@ export class BrowseBySwitcherComponent extends AbstractComponentLoaderComponent<
|
||||
];
|
||||
|
||||
public getComponent(): GenericConstructor<Component> {
|
||||
return getComponentByBrowseByType(this.browseByType, this.context, this.themeService.getThemeName());
|
||||
return getComponentByBrowseByType(this.browseByType.type, this.context, this.themeService.getThemeName());
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user