From 629d3363651e252468dfe0719e3224c0fbcd012f Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 31 Dec 2024 11:34:42 +0530 Subject: [PATCH] Improved: added orderByField in the payload for fetching product stores for the facilities (#561) --- src/store/modules/user/actions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/store/modules/user/actions.ts b/src/store/modules/user/actions.ts index 69cf6d28..c2c909b8 100644 --- a/src/store/modules/user/actions.ts +++ b/src/store/modules/user/actions.ts @@ -204,7 +204,8 @@ const actions: ActionTree = { facilityTypeId: "VIRTUAL_FACILITY", facilityTypeId_not: "Y", facilityId: facility.facilityId, - pageSize: 1 + pageSize: 1, + orderByField: "sequenceNum asc, storeName asc" }) if(!hasError(resp) && resp.data.length > 0) { @@ -230,7 +231,8 @@ const actions: ActionTree = { parentFacilityTypeId_not: "Y", facilityTypeId: "VIRTUAL_FACILITY", facilityTypeId_not: "Y", - pageSize: 200 + pageSize: 200, + orderByField: "sequenceNum asc, storeName asc" }) if(!hasError(resp)) {