From 9092ba0d370588763ec72971664a74b2a56c1fc8 Mon Sep 17 00:00:00 2001 From: Jens Vannerum Date: Mon, 16 Dec 2024 16:57:53 +0100 Subject: [PATCH] 121787: fix browse switcher issue --- .../browse-by-switcher/browse-by-switcher.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/browse-by/browse-by-switcher/browse-by-switcher.component.ts b/src/app/browse-by/browse-by-switcher/browse-by-switcher.component.ts index c1e3dae79f0..53be5fa786d 100644 --- a/src/app/browse-by/browse-by-switcher/browse-by-switcher.component.ts +++ b/src/app/browse-by/browse-by-switcher/browse-by-switcher.component.ts @@ -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 { - return getComponentByBrowseByType(this.browseByType, this.context, this.themeService.getThemeName()); + return getComponentByBrowseByType(this.browseByType.type, this.context, this.themeService.getThemeName()); } }