Merge pull request #302 from lbryio/fix-actuallyFixEmptyChannels

fix empty channels betterer
This commit is contained in:
jessopb 2020-04-15 17:57:34 -04:00 committed by GitHub
commit 22c9e3563e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

4
dist/bundle.es.js vendored
View file

@ -5046,7 +5046,7 @@ reducers[FETCH_CHANNEL_LIST_COMPLETED] = (state, action) => {
if (!claims.length) {
// $FlowFixMe
myChannelClaims = [];
myChannelClaims = null;
} else {
myChannelClaims = new Set(state.myChannelClaims);
claims.forEach(claim => {
@ -5080,7 +5080,7 @@ reducers[FETCH_CHANNEL_LIST_COMPLETED] = (state, action) => {
claimsByUri: byUri,
channelClaimCounts,
fetchingMyChannels: false,
myChannelClaims: Array.from(myChannelClaims),
myChannelClaims: myChannelClaims ? Array.from(myChannelClaims) : null,
myClaims: Array.from(myClaimIds)
});
};

View file

@ -220,7 +220,7 @@ reducers[ACTIONS.FETCH_CHANNEL_LIST_COMPLETED] = (state: State, action: any): St
if (!claims.length) {
// $FlowFixMe
myChannelClaims = [];
myChannelClaims = null;
} else {
myChannelClaims = new Set(state.myChannelClaims);
claims.forEach(claim => {
@ -255,7 +255,7 @@ reducers[ACTIONS.FETCH_CHANNEL_LIST_COMPLETED] = (state: State, action: any): St
claimsByUri: byUri,
channelClaimCounts,
fetchingMyChannels: false,
myChannelClaims: Array.from(myChannelClaims),
myChannelClaims: myChannelClaims ? Array.from(myChannelClaims) : null,
myClaims: Array.from(myClaimIds),
});
};