diff --git a/packages/edit-site/src/components/header/document-actions/index.js b/packages/edit-site/src/components/header/document-actions/index.js index f1995043200fc..02f8de9fbbfb9 100644 --- a/packages/edit-site/src/components/header/document-actions/index.js +++ b/packages/edit-site/src/components/header/document-actions/index.js @@ -44,6 +44,11 @@ export default function DocumentActions( { documentTitle } ) { // item is inactive. const isTitleActive = ! label?.length || ! isActive; + const { page } = useSelect( ( select ) => { + const { getPage } = select( 'core/edit-site' ); + return { page: getPage() }; + } ); + return (
{ /* TODO: Don't allow input when there is no page context */ }