fix(core-flows, medusa): Prevent cart addresses duplication on update (#13841)

* Allow id field in addresses properties for cart update validator

* Update cart addresses in update step where id is provided, both reference and nested fields

* Add tests

* Add changeset

* Remove unnecessary map step

* Review changes
This commit is contained in:
Nicolas Gorga authored and GitHub committed 2025-12-09 21:49:16 -03:00
1 parent 4dbf46f2cb
commit fdc2b722d9
4 files changed
+337 -5

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
---
"@medusajs/core-flows": patch
"@medusajs/medusa": patch
---
fix(medusa): Allow 'id' in shipping_address and billing_address in validator of store udpate cart route
fix(core-flows): Update addresses nested fields when 'id' is provided in payload for update-carts step