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:
1 parent
cacc443fc2
commit
ec27d02d99
2 files changed
+6
-1
No files matched your search
@@ -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
|
const methodProfile = method.shipping_option.profile_id
|
||||||
|
|
||||||
temp.items = items.filter(({ variant }) => {
|
temp.items = items.filter(({ variant }) => {
|
||||||
variant.product.profile_id === methodProfile
|
return variant.product.profile_id === methodProfile
|
||||||
})
|
})
|
||||||
partitioned.push(temp)
|
partitioned.push(temp)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user