Merge branch 'fix-empty-channels'
This commit is contained in:
commit
92f3cf46e2
2 changed files with 5 additions and 5 deletions
|
@ -23,6 +23,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
|
||||||
* Be consistent with the step property on credit inputs (#604)
|
* Be consistent with the step property on credit inputs (#604)
|
||||||
* Fixed issue when file fails to download (#642)
|
* Fixed issue when file fails to download (#642)
|
||||||
* Fixed issue after accessing a video without enough credits (#605)
|
* Fixed issue after accessing a video without enough credits (#605)
|
||||||
|
* Fixed channel fetching without claims (#634)
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
*
|
*
|
||||||
|
|
|
@ -387,16 +387,15 @@ export function doFetchClaimsByChannel(uri, page) {
|
||||||
});
|
});
|
||||||
|
|
||||||
lbry.claim_list_by_channel({ uri, page: page || 1 }).then(result => {
|
lbry.claim_list_by_channel({ uri, page: page || 1 }).then(result => {
|
||||||
const claimResult = result[uri],
|
const claimResult = result[uri] || {};
|
||||||
claims = claimResult ? claimResult.claims_in_channel : [],
|
const { claims_in_channel, returned_page } = claimResult;
|
||||||
currentPage = claimResult ? claimResult.returned_page : undefined;
|
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.FETCH_CHANNEL_CLAIMS_COMPLETED,
|
type: types.FETCH_CHANNEL_CLAIMS_COMPLETED,
|
||||||
data: {
|
data: {
|
||||||
uri,
|
uri,
|
||||||
claims,
|
claims: claims_in_channel || [],
|
||||||
page: currentPage,
|
page: returned_page || undefined,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue