diff --git a/packages/editor/src/components/provider/index.js b/packages/editor/src/components/provider/index.js index 389435c5bf4c29..3b061424655b6c 100644 --- a/packages/editor/src/components/provider/index.js +++ b/packages/editor/src/components/provider/index.js @@ -195,7 +195,8 @@ export const ExperimentalEditorProvider = withRegistryProvider( editorSettings: getEditorSettings(), isReady: __unstableIsEditorReady(), mode: getRenderingMode(), - defaultMode: postTypeObject?.default_rendering_mode, + defaultMode: + postTypeObject?.default_rendering_mode ?? 'post-only', selection: getEditorSelection(), postTypeEntities: post.type === 'wp_template' @@ -335,11 +336,6 @@ export const ExperimentalEditorProvider = withRegistryProvider( // Register the editor commands. useCommands(); - console.log( { - notRender: ! isReady || ! mode || ! hasLoadedPostObject, - settings: ! settings.isPreviewMode, - } ); - if ( ! isReady || ! mode || ! hasLoadedPostObject ) { return null; }