diff --git a/packages/block-editor/src/layouts/index.js b/packages/block-editor/src/layouts/index.js index 928876c1365f7c..eb8e1dd855fe9e 100644 --- a/packages/block-editor/src/layouts/index.js +++ b/packages/block-editor/src/layouts/index.js @@ -13,7 +13,10 @@ const layoutTypes = [ flow, flex ]; * @return {Object} Layout type. */ export function getLayoutType( name = 'default' ) { - return layoutTypes.find( ( layoutType ) => layoutType.name === name ); + return ( + layoutTypes.find( ( layoutType ) => layoutType.name === name ) ?? + layoutTypes.find( ( layoutType ) => layoutType.name === 'default' ) + ); } /**