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)
|
||||
* Fixed issue when file fails to download (#642)
|
||||
* Fixed issue after accessing a video without enough credits (#605)
|
||||
* Fixed channel fetching without claims (#634)
|
||||
|
||||
### Deprecated
|
||||
*
|
||||
|
|
|
@ -387,16 +387,15 @@ export function doFetchClaimsByChannel(uri, page) {
|
|||
});
|
||||
|
||||
lbry.claim_list_by_channel({ uri, page: page || 1 }).then(result => {
|
||||
const claimResult = result[uri],
|
||||
claims = claimResult ? claimResult.claims_in_channel : [],
|
||||
currentPage = claimResult ? claimResult.returned_page : undefined;
|
||||
const claimResult = result[uri] || {};
|
||||
const { claims_in_channel, returned_page } = claimResult;
|
||||
|
||||
dispatch({
|
||||
type: types.FETCH_CHANNEL_CLAIMS_COMPLETED,
|
||||
data: {
|
||||
uri,
|
||||
claims,
|
||||
page: currentPage,
|
||||
claims: claims_in_channel || [],
|
||||
page: returned_page || undefined,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue