diff --git a/packages/edit-post/src/components/layout/index.js b/packages/edit-post/src/components/layout/index.js index 70d5554064edf..72b843f06e743 100644 --- a/packages/edit-post/src/components/layout/index.js +++ b/packages/edit-post/src/components/layout/index.js @@ -162,6 +162,7 @@ function Layout() { showBlockBreadcrumbs, showMetaBoxes, documentLabel, + hasHistory, } = useSelect( ( select ) => { const { getEditorSettings, getPostTypeLabel } = select( editorStore ); const editorSettings = getEditorSettings(); @@ -199,6 +200,7 @@ function Layout() { documentLabel: postTypeLabel || _x( 'Document', 'noun' ), hasBlockSelected: !! select( blockEditorStore ).getBlockSelectionStart(), + hasHistory: !! getEditorSettings().goBack, }; }, [] ); @@ -286,7 +288,7 @@ function Layout() { return ( <> - + { ! hasHistory && }