From 916ef0f6474f8666d491df75516621b6ffcfbfce Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 11 Feb 2020 15:31:12 -0500 Subject: [PATCH] add resolve flag to doFetchClaimListMine --- dist/bundle.es.js | 7 ++++++- src/redux/actions/claims.js | 25 ++++++++++++++----------- 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 2c5709e..68e615b 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2887,7 +2887,12 @@ function doFetchClaimListMine(page = 1, pageSize = 99999) { type: FETCH_CLAIM_LIST_MINE_STARTED }); - lbryProxy.claim_list({ page, page_size: pageSize, claim_type: ['stream', 'repost'] }).then(result => { + lbryProxy.claim_list({ + page, + page_size: pageSize, + claim_type: ['stream', 'repost'], + resolve: true + }).then(result => { const claims = result.items; dispatch({ diff --git a/src/redux/actions/claims.js b/src/redux/actions/claims.js index 2857097..3198807 100644 --- a/src/redux/actions/claims.js +++ b/src/redux/actions/claims.js @@ -100,18 +100,21 @@ export function doFetchClaimListMine(page: number = 1, pageSize: number = 99999) type: ACTIONS.FETCH_CLAIM_LIST_MINE_STARTED, }); - Lbry.claim_list({ page, page_size: pageSize, claim_type: ['stream', 'repost'] }).then( - (result: StreamListResponse) => { - const claims = result.items; + Lbry.claim_list({ + page, + page_size: pageSize, + claim_type: ['stream', 'repost'], + resolve: true, + }).then((result: StreamListResponse) => { + const claims = result.items; - dispatch({ - type: ACTIONS.FETCH_CLAIM_LIST_MINE_COMPLETED, - data: { - claims, - }, - }); - } - ); + dispatch({ + type: ACTIONS.FETCH_CLAIM_LIST_MINE_COMPLETED, + data: { + claims, + }, + }); + }); }; }