Skip to content

Commit

Permalink
Display editor even without template
Browse files Browse the repository at this point in the history
Wait to show block editor until template is set
  • Loading branch information
noahtallen committed Jun 16, 2020
1 parent 491c0dc commit eb4fe79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/edit-site/src/components/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function Editor() {
} ),
[ page.context ]
);
return template ? (
return (
<>
<EditorStyles styles={ settings.styles } />
<FullscreenMode isActive={ isFullscreenActive } />
Expand Down Expand Up @@ -223,7 +223,7 @@ function Editor() {
>
<Notices />
<Popover.Slot name="block-toolbar" />
<BlockEditor />
{ template && <BlockEditor /> }
<KeyboardShortcuts />
</BlockSelectionClearer>
}
Expand Down Expand Up @@ -268,6 +268,6 @@ function Editor() {
</DropZoneProvider>
</SlotFillProvider>
</>
) : null;
);
}
export default Editor;

0 comments on commit eb4fe79

Please sign in to comment.