Skip to content

Commit

Permalink
Remove unnecessary optional chain inside conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerB24890 committed Jun 4, 2024
1 parent 9b276d2 commit a26a583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edit-post/src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit a26a583

Please sign in to comment.