Skip to content

Commit

Permalink
fix(product): Only apply default order to products if user has not sp…
Browse files Browse the repository at this point in the history
…ecified an order
  • Loading branch information
kasperkristensen committed Dec 10, 2024
1 parent e41ab50 commit 448c4b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cold-suns-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/product": patch
---

fix(product): Only apply default order to products if user has not specified an order
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export default class ProductModuleService
...config,
order: {
id: "ASC",
...config?.order,
...(config?.order ?? { id: "ASC" }),
...(hasImagesRelation
? {
images: {
Expand Down

0 comments on commit 448c4b8

Please sign in to comment.