diff --git a/src/store/modules/orderRouting/actions.ts b/src/store/modules/orderRouting/actions.ts index 6638e1b..c40d4af 100644 --- a/src/store/modules/orderRouting/actions.ts +++ b/src/store/modules/orderRouting/actions.ts @@ -15,7 +15,8 @@ const actions: ActionTree = { let routingGroups = [] as any; // filter groups on the basis of productStoreId const payload = { - productStoreId: store.state.user.currentEComStore.productStoreId + productStoreId: store.state.user.currentEComStore.productStoreId, + pageSize: 200 } try { @@ -216,7 +217,7 @@ const actions: ActionTree = { let routingHistory = {} try { - const resp = await OrderRoutingService.fetchRoutingHistory(routingGroupId, { orderByField: "startDate DESC" }) + const resp = await OrderRoutingService.fetchRoutingHistory(routingGroupId, { orderByField: "startDate DESC", pageSize: 500 }) if(!hasError(resp)) { // Sorting the history based on startTime, as we does not get the records in sorted order from api diff --git a/src/store/modules/util/actions.ts b/src/store/modules/util/actions.ts index 70babdb..9c0e6d8 100644 --- a/src/store/modules/util/actions.ts +++ b/src/store/modules/util/actions.ts @@ -15,7 +15,10 @@ const actions: ActionTree = { } try { - const resp = await UtilService.fetchEnums(payload); + const resp = await UtilService.fetchEnums({ + ...payload, + pageSize: 500 + }); if(!hasError(resp) && resp.data.length) { enums = resp.data.reduce((enumerations: any, data: EnumerationAndType) => { @@ -45,7 +48,8 @@ const actions: ActionTree = { } const payload = { - parentTypeId: "VIRTUAL_FACILITY" + parentTypeId: "VIRTUAL_FACILITY", + pageSize: 200 } try { @@ -74,7 +78,8 @@ const actions: ActionTree = { // Fetching shipping methods for productStore of the currentGroup const payload = { - productStoreId: store.state.orderRouting.currentGroup.productStoreId + productStoreId: store.state.orderRouting.currentGroup.productStoreId, + pageSize: 200 } try { @@ -102,7 +107,8 @@ const actions: ActionTree = { } const payload = { - productStoreId: store.state.orderRouting.currentGroup.productStoreId + productStoreId: store.state.orderRouting.currentGroup.productStoreId, + pageSize: 200 } try {