hotfix(medusa): compatible with missing shipped_quantity fields
This commit is contained in:
@@ -429,7 +429,8 @@ class OrderService extends BaseService {
|
||||
// ensure consistency
|
||||
if (item !== -1) {
|
||||
item.shipped_quantity = item.quantity
|
||||
order.items[itemIdx].shipped_quantity += item.quantity
|
||||
order.items[itemIdx].shipped_quantity =
|
||||
(order.items[itemIdx].shipped_quantity || 0) + item.quantity
|
||||
}
|
||||
})
|
||||
shipment = {
|
||||
|
||||
Reference in New Issue
Block a user