diff --git a/src/store/modules/order/actions.ts b/src/store/modules/order/actions.ts index 0a60b44a..64115d7a 100644 --- a/src/store/modules/order/actions.ts +++ b/src/store/modules/order/actions.ts @@ -1137,8 +1137,6 @@ const actions: ActionTree ={ const reservedShipGroup = reservedShipGroupForOrder?.groupValue ? reservedShipGroupForOrder.doclist.docs[0] : '' - reservedShipGroupForOrder.doclist.docs.map((item: any) => item.isFetchingStock = false); - return reservedShipGroup ? { ...shipGroup, items: reservedShipGroupForOrder.doclist.docs, @@ -1151,6 +1149,10 @@ const actions: ActionTree ={ } }) + shipGroups.map((shipGroup: any) => { + shipGroup.items.map((item: any) => item.isFetchingStock = false); + }) + const carrierPartyIds: Array = []; const shipmentIds: Array = [];