diff --git a/packages/block-library/src/post-featured-image/edit.js b/packages/block-library/src/post-featured-image/edit.js index d6ecda6422d442..3acbef27762738 100644 --- a/packages/block-library/src/post-featured-image/edit.js +++ b/packages/block-library/src/post-featured-image/edit.js @@ -119,14 +119,10 @@ function PostFeaturedImageDisplay( { const PostFeaturedImageWithNotices = withNotices( PostFeaturedImageDisplay ); -const OutofContextPlaceholder = () => { - const blockProps = useBlockProps(); - return
{ placeholderChip }
; -}; - export default function PostFeaturedImageEdit( props ) { + const blockProps = useBlockProps(); if ( ! props.context?.postId ) { - return ; + return
{ placeholderChip }
; } return ; }