Fix flow error.

Partial fix for #2024
This commit is contained in:
Jeffrey Fisher 2020-04-21 02:06:03 -07:00 committed by Sean Yesmunt
parent eb50475edc
commit 7adf165f08

View file

@ -141,16 +141,15 @@ export function doFetchClaimsByChannel(uri: string, page: number = 1, pageSize:
return (dispatch: Dispatch, getState: GetState) => { return (dispatch: Dispatch, getState: GetState) => {
const state = getState(); const state = getState();
const showMature = makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state); const showMature = makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state);
const params = { const params = {};
channel: uri, params.channel = uri;
page, params.page = page;
page_size: pageSize, params.page_size = pageSize;
valid_channel_signature: true, params.valid_channel_signature = true;
order_by: ['release_time'], params.order_by = ['release_time'];
};
if (!showMature) { if (!showMature) {
params['not_tags'] = MATURE_TAGS; params.not_tags = MATURE_TAGS;
} }
dispatch({ dispatch({