From a26a583f47419476d64cce7363d39c68794fef11 Mon Sep 17 00:00:00 2001 From: Tyler Bailey Date: Tue, 4 Jun 2024 15:29:45 -0400 Subject: [PATCH] Remove unnecessary optional chain inside conditional --- packages/edit-post/src/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-post/src/editor.js b/packages/edit-post/src/editor.js index 3a09c90a2f2e7f..55d9b500de267d 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';