Skip to content

Commit

Permalink
Site editor: do not remount iframe (#46431)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored Dec 9, 2022
1 parent abc4dbd commit 2c57000
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/edit-site/src/components/block-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export default function BlockEditor( { setIsInserterOpen } ) {
const {
storedSettings,
templateType,
templateId,
page,
isNavigationSidebarOpen,
canvasMode,
Expand All @@ -71,15 +70,13 @@ export default function BlockEditor( { setIsInserterOpen } ) {
const {
getSettings,
getEditedPostType,
getEditedPostId,
getPage,
__unstableGetCanvasMode,
} = select( editSiteStore );

return {
storedSettings: getSettings( setIsInserterOpen ),
templateType: getEditedPostType(),
templateId: getEditedPostId(),
page: getPage(),
isNavigationSidebarOpen:
select( interfaceStore ).getActiveComplementaryArea(
Expand Down Expand Up @@ -257,8 +254,6 @@ export default function BlockEditor( { setIsInserterOpen } ) {
<BlockEditorKeyboardShortcuts.Register />
<BackButton />
<ResizableEditor
// Reinitialize the editor and reset the states when the template changes.
key={ templateId }
enableResizing={ enableResizing }
height={ sizes.height }
>
Expand Down

0 comments on commit 2c57000

Please sign in to comment.