strapi-plugin-navigation
strapi-plugin-navigation copied to clipboard
fix: wrong relation between navigation and items
Ticket
NA
Summary
What does this PR do/solve?
Fixes the relations between navigation and navigation items. Before this relation created 2 tables with links, but only saved data to one of them. Now this relation uses
mappedByandinversedByparams to avoid mentioned behavior.
Test Plan
I've tested this change on two different cases.
- Clean install, without data
- Migration from the latest install, with data.
No data should disappear. The plugin should work the same on both versions. No output should change in render functions. The only difference should be the lack of navigations_items_links table.