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) => {
const state = getState();
const showMature = makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state);
const params = {
channel: uri,
page,
page_size: pageSize,
valid_channel_signature: true,
order_by: ['release_time'],
};
const params = {};
params.channel = uri;
params.page = page;
params.page_size = pageSize;
params.valid_channel_signature = true;
params.order_by = ['release_time'];
if (!showMature) {
params['not_tags'] = MATURE_TAGS;
params.not_tags = MATURE_TAGS;
}
dispatch({