From 7adf165f084e549d5abcaf9511d4f6cb9b6a4618 Mon Sep 17 00:00:00 2001 From: Jeffrey Fisher Date: Tue, 21 Apr 2020 02:06:03 -0700 Subject: [PATCH] Fix flow error. Partial fix for #2024 --- ui/redux/actions/content.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/ui/redux/actions/content.js b/ui/redux/actions/content.js index 95e09b49b..1c1cfcc78 100644 --- a/ui/redux/actions/content.js +++ b/ui/redux/actions/content.js @@ -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({