Skip to content

Commit

Permalink
Improved: added orderByField in the payload for fetching product stor…
Browse files Browse the repository at this point in the history
…es for the facilities (#561)
  • Loading branch information
amansinghbais committed Dec 31, 2024
1 parent fb0dd1a commit 629d336
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ const actions: ActionTree<UserState, RootState> = {
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) {
Expand All @@ -230,7 +231,8 @@ const actions: ActionTree<UserState, RootState> = {
parentFacilityTypeId_not: "Y",
facilityTypeId: "VIRTUAL_FACILITY",
facilityTypeId_not: "Y",
pageSize: 200
pageSize: 200,
orderByField: "sequenceNum asc, storeName asc"
})

if(!hasError(resp)) {
Expand Down

0 comments on commit 629d336

Please sign in to comment.