diff --git a/packages/block-library/src/post-content/edit.js b/packages/block-library/src/post-content/edit.js index 7b41baf0fbae21..8385447581969c 100644 --- a/packages/block-library/src/post-content/edit.js +++ b/packages/block-library/src/post-content/edit.js @@ -58,8 +58,12 @@ function EditableContent( { context = {} } ) { function Content( props ) { const { context: { queryId, postType, postId } = {} } = props; - const isDescendentOfQueryLoop = Number.isFinite( queryId ); const userCanEdit = useCanEditEntity( 'postType', postType, postId ); + if ( userCanEdit === undefined ) { + return null; + } + + const isDescendentOfQueryLoop = Number.isFinite( queryId ); const isEditable = userCanEdit && ! isDescendentOfQueryLoop; return isEditable ? (