remove 'amount' from doClaimSearch arguments
This commit is contained in:
parent
6ba6ba26f3
commit
87fdb8084e
2 changed files with 3 additions and 6 deletions
6
dist/bundle.es.js
vendored
6
dist/bundle.es.js
vendored
|
@ -2309,7 +2309,7 @@ function doFetchChannelListMine() {
|
|||
};
|
||||
}
|
||||
|
||||
function doClaimSearch(amount = 20, options = {}) {
|
||||
function doClaimSearch(options = {}) {
|
||||
return dispatch => {
|
||||
dispatch({
|
||||
type: CLAIM_SEARCH_STARTED
|
||||
|
@ -2336,9 +2336,7 @@ function doClaimSearch(amount = 20, options = {}) {
|
|||
});
|
||||
};
|
||||
|
||||
lbryProxy.claim_search(_extends$3({
|
||||
page_size: amount
|
||||
}, options)).then(success, failure);
|
||||
lbryProxy.claim_search(_extends$3({}, options)).then(success, failure);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ export function doFetchChannelListMine() {
|
|||
};
|
||||
}
|
||||
|
||||
export function doClaimSearch(amount: number = 20, options: { page?: number } = {}) {
|
||||
export function doClaimSearch(options: { page_size?: number, page?: number } = {}) {
|
||||
return (dispatch: Dispatch) => {
|
||||
dispatch({
|
||||
type: ACTIONS.CLAIM_SEARCH_STARTED,
|
||||
|
@ -327,7 +327,6 @@ export function doClaimSearch(amount: number = 20, options: { page?: number } =
|
|||
};
|
||||
|
||||
Lbry.claim_search({
|
||||
page_size: amount,
|
||||
...options,
|
||||
}).then(success, failure);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue