diff --git a/packages/edit-post/src/editor.js b/packages/edit-post/src/editor.js index 3a09c90a2f2e7..55d9b500de267 100644 --- a/packages/edit-post/src/editor.js +++ b/packages/edit-post/src/editor.js @@ -37,7 +37,7 @@ function Editor( { const postTypeObject = select( coreStore ).getPostType( initialPostType ); if ( postTypeObject && postTypeObject?.rendering_mode ) { - return postTypeObject?.rendering_mode; + return postTypeObject.rendering_mode; } return 'post-only';