diff --git a/packages/block-library/src/navigation/edit/navigation-menu-selector.js b/packages/block-library/src/navigation/edit/navigation-menu-selector.js index a9f3abceaaa375..0b2c454fc41032 100644 --- a/packages/block-library/src/navigation/edit/navigation-menu-selector.js +++ b/packages/block-library/src/navigation/edit/navigation-menu-selector.js @@ -68,8 +68,12 @@ function NavigationMenuSelector( { const menuChoices = useMemo( () => { return ( - navigationMenus?.map( ( { id, title } ) => { - const label = decodeEntities( title.rendered ); + navigationMenus?.map( ( { id, title }, index ) => { + const label = + decodeEntities( title.rendered ) || + /* translators: %s is the index of the menu in the list of menus. */ + sprintf( __( '(no title %s)' ), index + 1 ); + if ( id === currentMenuId && ! isCreatingMenu ) { setSelectorLabel( /* translators: %s is the name of a navigation menu. */