From 16c1287b39e4ddba0ebcf537732dd785649ebd33 Mon Sep 17 00:00:00 2001 From: Mitchell Austin Date: Tue, 4 Jun 2024 10:16:07 -0700 Subject: [PATCH] Editor: Avoid remounts of `DocumentBar` (#62214) * Incorporate PostTypeSupportCheck in DocumentBar * Remove PostTypeSupportCheck from DocumentBar Co-authored-by: youknowriad Co-authored-by: jasmussen --- packages/editor/src/components/header/index.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/editor/src/components/header/index.js b/packages/editor/src/components/header/index.js index 4f1df093176a7..14b62def0cfa7 100644 --- a/packages/editor/src/components/header/index.js +++ b/packages/editor/src/components/header/index.js @@ -25,7 +25,6 @@ import MoreMenu from '../more-menu'; import PostPreviewButton from '../post-preview-button'; import PostPublishButtonOrToggle from '../post-publish-button/post-publish-button-or-toggle'; import PostSavedState from '../post-saved-state'; -import PostTypeSupportCheck from '../post-type-support-check'; import PostViewLink from '../post-view-link'; import PreviewDropdown from '../preview-dropdown'; import { store as editorStore } from '../../store'; @@ -117,13 +116,7 @@ function Header( { ! isBlockToolsCollapsed && hasTopToolbar, } ) } > - { ! title ? ( - - - - ) : ( - title - ) } + { ! title ? : title }