diff --git a/packages/edit-navigation/src/utils/index.js b/packages/edit-navigation/src/utils/index.js index fb3db883d35e0..b77660ae7587a 100644 --- a/packages/edit-navigation/src/utils/index.js +++ b/packages/edit-navigation/src/utils/index.js @@ -58,7 +58,7 @@ export function createMenuPreloadingMiddleware( preloadedData ) { const menuId = parseInt( matches[ 1 ] ); const menu = menuData.filter( ( { id } ) => id === menuId ); - if ( 0 < menu.length ) { + if ( menu.length > 0 ) { menuDataLoaded = true; // We don't have headers because we "emulate" this request return sendSuccessResponse(