fix empty channels betterer
This commit is contained in:
parent
4d374432cd
commit
df043f3ef6
2 changed files with 4 additions and 4 deletions
4
dist/bundle.es.js
vendored
4
dist/bundle.es.js
vendored
|
@ -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)
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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),
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue