fix(medusa): priced products region_id regression (#13961)
* Correctly destructure query result * Add changeset
This commit is contained in:
1 parent
32f9c15b1b
commit
018871f8cd
2 files changed
+6
-1
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/medusa": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix regression preventing region_id to be resolved from store's default region when retrieving priced products
|
||||||
@@ -77,7 +77,7 @@ export function normalizeDataForContext(options: PricingContextOptions = {}) {
|
|||||||
|
|
||||||
// Finally, try to get it from the store defaults if not available
|
// Finally, try to get it from the store defaults if not available
|
||||||
if (!regionId) {
|
if (!regionId) {
|
||||||
const stores = await refetchEntities({
|
const { data: stores } = await refetchEntities({
|
||||||
entity: "store",
|
entity: "store",
|
||||||
scope: req.scope,
|
scope: req.scope,
|
||||||
fields: ["id", "default_region_id"],
|
fields: ["id", "default_region_id"],
|
||||||
|
|||||||
Reference in new issue
Block a user