fix recommended follows (#7081)

This commit is contained in:
jessopb 2021-09-13 12:48:17 -04:00 committed by GitHub
parent c2e414971d
commit b83fe995c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ function UserChannelFollowIntro(props: Props) {
const { PRIMARY_CONTENT } = homepageData; const { PRIMARY_CONTENT } = homepageData;
let channelIds; let channelIds;
if (PRIMARY_CONTENT && CUSTOM_HOMEPAGE) { if (PRIMARY_CONTENT && CUSTOM_HOMEPAGE) {
channelIds = PRIMARY_CONTENT.channelIds; channelIds = PRIMARY_CONTENT.ids;
} }
const followingCount = (subscribedChannels && subscribedChannels.length) || 0; const followingCount = (subscribedChannels && subscribedChannels.length) || 0;
const followingCountIgnoringAutoFollows = (subscribedChannels || []).filter( const followingCountIgnoringAutoFollows = (subscribedChannels || []).filter(

View file

@ -31,7 +31,7 @@ function ChannelsFollowingDiscover(props: Props) {
const { PRIMARY_CONTENT } = homepageData; const { PRIMARY_CONTENT } = homepageData;
let channelIds; let channelIds;
if (PRIMARY_CONTENT && CUSTOM_HOMEPAGE) { if (PRIMARY_CONTENT && CUSTOM_HOMEPAGE) {
channelIds = PRIMARY_CONTENT.channelIds; channelIds = PRIMARY_CONTENT.ids;
} }
let rowData: Array<ChannelsFollowingItem> = []; let rowData: Array<ChannelsFollowingItem> = [];
const notChannels = subscribedChannels const notChannels = subscribedChannels