fix empty channels betterer

This commit is contained in:
jessop 2020-04-15 17:36:48 -04:00
parent 4d374432cd
commit df043f3ef6
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),
});
};