File tree Expand file tree Collapse file tree
content-types/navigation-item Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " strapi-plugin-navigation" ,
3- "version" : " 3.3.4 " ,
3+ "version" : " 3.3.5-beta.1 " ,
44 "description" : " Strapi - Navigation plugin" ,
55 "strapi" : {
66 "name" : " navigation" ,
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export default {
7575 related : {
7676 type : 'relation' ,
7777 relation : 'morphToMany' ,
78- required : true ,
78+ required : false ,
7979 configurable : false ,
8080 } ,
8181 parent : {
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ export const removeNavigationsWithoutDefaultLocale = async (context: { strapi: C
77 limit : Number . MAX_SAFE_INTEGER ,
88 } ) ;
99 const defaultLocale = await context . strapi . plugin ( 'i18n' ) . service ( 'locales' ) . getDefaultLocale ( ) ;
10+ if ( ! defaultLocale ) {
11+ return ;
12+ }
1013 await Promise . all (
1114 allNavigations . map ( async ( navigation ) => {
1215 const root = allNavigations . find (
You can’t perform that action at this time.
0 commit comments