Skip to content

Commit

Permalink
Fix - Sometimes wild-west-like results show in hometab playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
miko authored and tzarebczan committed Apr 22, 2024
1 parent 0f61177 commit 407bfb8
Showing 1 changed file with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,35 +413,35 @@ function HomeTabSection(props: Props) {
<Icon icon={ICONS.ARROW_RIGHT} />
</label>
)}
{section.type !== 'channels' ? (
<ClaimListDiscover
hideFilters
hideAdvancedFilter
hideLayoutButton
tileLayout
infiniteScroll={false}
useSkeletonScreen={false}
uris={collectionUrls || claimSearchResults}
maxClaimRender={maxClaimsInSection}
claimIds={collectionClaimIds}
injectedItem={
!hasPremiumPlus &&
index === topContentGridIndex && {
node: (index) => {
return index === maxTilesPerRow ? <Ad type="tileA" tileLayout /> : null;
},
}
}
/>
) : (
featuredChannel && (
<ChannelSection
key={'featured-channels'}
uris={featuredChannel && featuredChannel.value.uris.slice(0, maxChannelsPerRow)}
channelId={channelClaimId}
/>
)
)}
{section.type !== 'channels'
? (collectionUrls || claimSearchResults || collectionClaimIds) && (
<ClaimListDiscover
hideFilters
hideAdvancedFilter
hideLayoutButton
tileLayout
infiniteScroll={false}
useSkeletonScreen={false}
uris={collectionUrls || claimSearchResults}
maxClaimRender={maxClaimsInSection}
claimIds={collectionClaimIds}
injectedItem={
!hasPremiumPlus &&
index === topContentGridIndex && {
node: (index) => {
return index === maxTilesPerRow ? <Ad type="tileA" tileLayout /> : null;
},
}
}
/>
)
: featuredChannel && (
<ChannelSection
key={'featured-channels'}
uris={featuredChannel && featuredChannel.value.uris.slice(0, maxChannelsPerRow)}
channelId={channelClaimId}
/>
)}
</>
) : (
<FeaturedSection
Expand Down

0 comments on commit 407bfb8

Please sign in to comment.