fix(product): Only apply default order to products if user has not specified one (#10535)

This commit is contained in:
Kasper Fabricius Kristensen
2024-12-10 17:57:11 +01:00
committed by GitHub
parent ab1bfb966d
commit 16192d9b30
2 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/product": patch
---
fix(product): Only apply default order to products if user has not specified an order

View File

@@ -228,8 +228,7 @@ export default class ProductModuleService
return {
...config,
order: {
id: "ASC",
...config?.order,
...(config?.order ?? { id: "ASC" }),
...(hasImagesRelation
? {
images: {