Skip to content

Commit

Permalink
fix: wrong relation between navigation and items
Browse files Browse the repository at this point in the history
  • Loading branch information
ltsNotMike authored and cyp3rius committed Sep 21, 2022
1 parent 72603c3 commit 4139310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion server/content-types/navigation-item/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export default {
type: "relation",
relation: "manyToOne",
target: "plugin::navigation.navigation",
configurable: false
configurable: false,
inversedBy: "items",
},
audience: {
type: "relation",
Expand Down
3 changes: 2 additions & 1 deletion server/content-types/navigation/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export default {
type: "relation",
relation: "oneToMany",
target: "plugin::navigation.navigation-item",
configurable: false
configurable: false,
mappedBy: "master"
},
localizations: {
type: "relation",
Expand Down

0 comments on commit 4139310

Please sign in to comment.