Skip to content

Commit

Permalink
Return original default when it template-locked
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored Sep 20, 2024
1 parent 11fc7d5 commit e06a1c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {

function getSectionRootBlock() {
if ( renderingMode === 'template-locked' ) {
return getBlocksByName( 'core/post-content' )?.[ 0 ];
return getBlocksByName( 'core/post-content' )?.[ 0 ] ?? ''
}

// Allow default algorithm to determine the section root block.
Expand Down

0 comments on commit e06a1c0

Please sign in to comment.