Merge pull request #244 from lbryio/channelCountFix

add channel item count for canonical url as well as vanity url
This commit is contained in:
Sean Yesmunt 2019-11-18 14:00:51 -05:00 committed by GitHub
commit ff35992081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
dist/bundle.es.js vendored
View file

@ -4016,6 +4016,7 @@ function handleClaimAction(state, action) {
const { claimsInChannel, stream, channel } = resolveResponse;
if (claimsInChannel) {
channelClaimCounts[url] = claimsInChannel;
channelClaimCounts[channel.canonical_url] = claimsInChannel;
}
if (stream) {

View file

@ -85,6 +85,7 @@ function handleClaimAction(state: State, action: any): State {
const { claimsInChannel, stream, channel } = resolveResponse;
if (claimsInChannel) {
channelClaimCounts[url] = claimsInChannel;
channelClaimCounts[channel.canonical_url] = claimsInChannel;
}
if (stream) {