File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/core/server/admin-api/services Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -210,13 +210,9 @@ export default () => ({
210210 fields = fields . filter ( ( field ) => field ) ;
211211
212212 // For fields containing dots, extract the first part (relation)
213- const relationsWithDots = fields . filter ( ( field ) => field . includes ( '.' ) ) . map ( ( field ) => field . split ( '.' ) [ 0 ] ) ;
213+ const relations = fields . filter ( ( field ) => field . includes ( '.' ) ) . map ( ( field ) => field . split ( '.' ) [ 0 ] ) ;
214214
215- // For fields without dots, treat them as direct fields (e.g., 'title' in /en/[title])
216- const directRelations = fields . filter ( ( field ) => ! field . includes ( '.' ) ) ;
217-
218- // Combine both types of relations
219- return [ ...relationsWithDots , ...directRelations ] ;
215+ return relations ;
220216 } ,
221217
222218
You can’t perform that action at this time.
0 commit comments