File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " strapi-plugin-navigation" ,
3- "version" : " 3.2.6-beta.1 " ,
3+ "version" : " 3.2.6-beta.2 " ,
44 "description" : " Strapi - Navigation plugin" ,
55 "strapi" : {
66 "name" : " navigation" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { getNavigationRepository } from "../repositories";
33
44export const removeNavigationsWithoutDefaultLocale = async ( context : { strapi : Core . Strapi } ) => {
55 const allNavigations = await getNavigationRepository ( context ) . find ( { locale : '*' , limit : Number . MAX_SAFE_INTEGER } ) ;
6- const defaultLocale = context . strapi . plugin ( 'i18n' ) . service ( 'locales' ) . getDefaultLocale ( ) . code ;
6+ const defaultLocale = await context . strapi . plugin ( 'i18n' ) . service ( 'locales' ) . getDefaultLocale ( ) ;
77 await Promise . all ( allNavigations . map ( async ( navigation ) => {
88 const root = allNavigations . find ( ( { documentId, locale } ) => documentId === navigation . documentId && locale === defaultLocale ) ;
99 if ( ! root ) {
You can’t perform that action at this time.
0 commit comments