fix(medusa): CartService lost shipping address when using the id
This commit is contained in:
1 parent
2260c2d09e
commit
c442be47d4
1 file changed
+1
-1
@@ -412,7 +412,7 @@ class CartService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!data.shipping_address) {
|
if (!data.shipping_address) {
|
||||||
if (region.countries.length === 1) {
|
if (!rawCart.shipping_address && region.countries.length === 1) {
|
||||||
// Preselect the country if the region only has 1
|
// Preselect the country if the region only has 1
|
||||||
// and create address entity
|
// and create address entity
|
||||||
rawCart.shipping_address = addressRepo.create({
|
rawCart.shipping_address = addressRepo.create({
|
||||||
|
|||||||
Reference in new issue
Block a user