fix(product): Only apply default order to products if user has not specified one (#10535)
This commit is contained in:
1 parent
ab1bfb966d
commit
16192d9b30
2 files changed
+6
-2
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/product": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(product): Only apply default order to products if user has not specified an order
|
||||||
@@ -228,8 +228,7 @@ export default class ProductModuleService
|
|||||||
return {
|
return {
|
||||||
...config,
|
...config,
|
||||||
order: {
|
order: {
|
||||||
id: "ASC",
|
...(config?.order ?? { id: "ASC" }),
|
||||||
...config?.order,
|
|
||||||
...(hasImagesRelation
|
...(hasImagesRelation
|
||||||
? {
|
? {
|
||||||
images: {
|
images: {
|
||||||
|
|||||||
Reference in new issue
Block a user