Skip to content

Commit

Permalink
Fix root post loading
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Nov 15, 2024
1 parent 9e8e08c commit b94e309
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ const NON_CONTEXTUAL_POST_TYPES = [
* @return {Array} Block editor props.
*/
function useBlockEditorProps( post, template, mode ) {
const rootLevelPost =
mode === 'post-only' || ! template ? 'post' : 'template';
const rootLevelPost = mode === 'template-locked' ? 'template' : 'post';
const [ postBlocks, onInput, onChange ] = useEntityBlockEditor(
'postType',
post.type,
Expand Down

0 comments on commit b94e309

Please sign in to comment.