mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 17:55:11 +00:00
fix for empty channels #636
This commit is contained in:
parent
72ad1552cb
commit
ab3aa0501c
1 changed files with 4 additions and 5 deletions
|
@ -384,16 +384,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,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue