Skip to content

Commit

Permalink
Improved: logic to append isFetchingStock to false by default in ship…
Browse files Browse the repository at this point in the history
…Groups (#403)
  • Loading branch information
amansinghbais committed Jun 26, 2024
1 parent e08d0a3 commit 753f971
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/store/modules/order/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1137,8 +1137,6 @@ const actions: ActionTree<OrderState , RootState> ={

const reservedShipGroup = reservedShipGroupForOrder?.groupValue ? reservedShipGroupForOrder.doclist.docs[0] : ''

reservedShipGroupForOrder.doclist.docs.map((item: any) => item.isFetchingStock = false);

return reservedShipGroup ? {
...shipGroup,
items: reservedShipGroupForOrder.doclist.docs,
Expand All @@ -1151,6 +1149,10 @@ const actions: ActionTree<OrderState , RootState> ={
}
})

shipGroups.map((shipGroup: any) => {
shipGroup.items.map((item: any) => item.isFetchingStock = false);
})

const carrierPartyIds: Array<string> = [];
const shipmentIds: Array<string> = [];

Expand Down

0 comments on commit 753f971

Please sign in to comment.