From 3539d78d0aa6393e8d4afbc669677b4af2b0de7b Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Sun, 1 Oct 2017 12:48:31 -0400 Subject: [PATCH] prevent overwriting variable --- ui/js/actions/content.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/js/actions/content.js b/ui/js/actions/content.js index 7eb16be8f..46d1fdd71 100644 --- a/ui/js/actions/content.js +++ b/ui/js/actions/content.js @@ -386,15 +386,13 @@ export function doFetchClaimsByChannel(uri, page) { lbry.claim_list_by_channel({ uri, page: page || 1 }).then(result => { const claimResult = result[uri] || {}; const { claims_in_channel, returned_page } = claimResult; - const claims = claims_in_channel || []; - const page = returned_page || undefined; dispatch({ type: types.FETCH_CHANNEL_CLAIMS_COMPLETED, data: { uri, - claims, - page, + claims: claims_in_channel || [], + page: returned_page || undefined, }, }); });