prevent overwriting variable
This commit is contained in:
parent
36c106e16c
commit
3539d78d0a
1 changed files with 2 additions and 4 deletions
|
@ -386,15 +386,13 @@ 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] || {};
|
||||||
const { claims_in_channel, returned_page } = claimResult;
|
const { claims_in_channel, returned_page } = claimResult;
|
||||||
const claims = claims_in_channel || [];
|
|
||||||
const page = 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,
|
page: returned_page || undefined,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue