Skip to content

Commit

Permalink
121787: fix browse switcher issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Vannerum committed Dec 16, 2024
1 parent 12a4447 commit 9092ba0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class BrowseBySwitcherComponent extends AbstractComponentLoaderComponent<

@Input() context: Context;

@Input() browseByType: BrowseByDataType;
@Input() browseByType: { type: BrowseByDataType };

@Input() displayTitle: boolean;

Expand All @@ -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());
}

}

0 comments on commit 9092ba0

Please sign in to comment.