From 332bc3036a9f32225b955f559f1e13bb446c6495 Mon Sep 17 00:00:00 2001 From: Khac Vy Date: Wed, 26 Feb 2020 15:46:48 +0700 Subject: [PATCH] fix: #142 Fix page size per request on admin stats (#443) --- packages/marketplace/src/sagas/admin-stats.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/marketplace/src/sagas/admin-stats.ts b/packages/marketplace/src/sagas/admin-stats.ts index 99e86d2c31..6f112d59e0 100644 --- a/packages/marketplace/src/sagas/admin-stats.ts +++ b/packages/marketplace/src/sagas/admin-stats.ts @@ -5,7 +5,7 @@ import ActionTypes from '../constants/action-types' import { errorThrownServer } from '../actions/error' import errorMessages from '../constants/error-messages' import { URLS, MARKETPLACE_HEADERS } from '@/constants/api' -import { APPS_PER_PAGE } from '@/constants/paginator' +import { GET_ALL_PAGE_SIZE } from '@/constants/paginator' import { fetcher, setQueryParams } from '@reapit/elements' import { Action } from '@/types/core' import { Area } from '@/components/pages/admin-stats' @@ -30,7 +30,7 @@ export const adminStatsDataFetch = function*({ data }) { } const response = yield call(fetcher, { url: `${url}?${setQueryParams({ - pageSize: APPS_PER_PAGE, + pageSize: GET_ALL_PAGE_SIZE, ...queryParams, })}`, api: process.env.MARKETPLACE_API_BASE_URL as string,