Co-authored-by: William Bouchard <46496014+willbouch@users.noreply.github.com> Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
This commit is contained in:
5
.changeset/mean-rockets-worry.md
Normal file
5
.changeset/mean-rockets-worry.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/index": patch
|
||||
---
|
||||
|
||||
fix(index): preserve existing fields configuration (#13639)
|
||||
@@ -845,7 +845,9 @@ function processEntity(
|
||||
]
|
||||
intermediateEntityObjectRepresentationRef.moduleConfig =
|
||||
intermediateEntityModule
|
||||
intermediateEntityObjectRepresentationRef.fields = ["id"]
|
||||
if (!intermediateEntityObjectRepresentationRef.fields.includes("id")) {
|
||||
intermediateEntityObjectRepresentationRef.fields.push("id")
|
||||
}
|
||||
|
||||
/**
|
||||
* We push the parent id only between intermediate entities but not between intermediate and link
|
||||
|
||||
Reference in New Issue
Block a user