Skip to content

Commit

Permalink
chore(hits): simplify bannerComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorcjohnson committed Jul 15, 2024
1 parent 9a87391 commit 940b40e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/vue-instantsearch/src/components/Hits.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ export default {
);
};

const bannerComponent =
bannerSlot && (({ banner }) => bannerSlot({ banner }));

// We only want to render the default slot
// if no other slots are defined
if (!itemSlot && !bannerSlot && defaultSlot) {
Expand All @@ -110,7 +107,7 @@ export default {
hits: this.state.items,
itemComponent,
banner: this.showBanner ? this.state.banner : undefined,
bannerComponent: bannerSlot ? bannerComponent : undefined,
bannerComponent: bannerSlot,
sendEvent: this.state.sendEvent,
classNames: this.classNames && {
root: this.classNames['ais-Hits'],
Expand Down

0 comments on commit 940b40e

Please sign in to comment.