Skip to content

Commit

Permalink
remove debug logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Dec 19, 2024
1 parent a2d2596 commit f341116
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f341116

Please sign in to comment.