fix(medusa): Filter statement in partitionItems_ method of Fulfillment Service (#5247)
* Fixed filter statement in partitionItems_ method of Fulfillment Service * Fix custom batch job activity card * Added changeset * Revert unrelated change --------- Co-authored-by: Pepijn van Vlaanderen <pepijn@webbers.com>
This commit is contained in:
5
.changeset/gold-emus-relax.md
Normal file
5
.changeset/gold-emus-relax.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
Fixed filter statement in partitionItems\_ method of Fulfillment Service
|
||||
@@ -89,7 +89,7 @@ class FulfillmentService extends TransactionBaseService {
|
||||
const methodProfile = method.shipping_option.profile_id
|
||||
|
||||
temp.items = items.filter(({ variant }) => {
|
||||
variant.product.profile_id === methodProfile
|
||||
return variant.product.profile_id === methodProfile
|
||||
})
|
||||
partitioned.push(temp)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user