From f341116df7ee2928a6758199259bdac25ae8fda1 Mon Sep 17 00:00:00 2001 From: Jorge Costa Date: Thu, 19 Dec 2024 23:00:08 +0000 Subject: [PATCH] remove debug logic --- packages/editor/src/components/provider/index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; }