Skip to content

Commit

Permalink
Added possibility to independently set the number of items on the lan…
Browse files Browse the repository at this point in the history
…ding page for each section
  • Loading branch information
zotya committed Jan 18, 2023
1 parent 01ad060 commit db72419
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion searchlib/components/LandingPage/TilesLandingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ const LandingPage = (props) => {

const activeSectionConfig = getFacetConfig(sections, activeSection);

const getTiles = (maxPerSection) => {
const getTiles = (maxPerSection_default) => {
const maxPerSection = activeSectionConfig.maxPerSection || maxPerSection_default;
let result = landingPageData?.[activeSection]?.[0]?.data || [];

if (activeSectionConfig.blacklist !== undefined) {
Expand Down

0 comments on commit db72419

Please sign in to comment.