Skip to content

Commit

Permalink
allow no active view
Browse files Browse the repository at this point in the history
  • Loading branch information
SaxonF authored and scruffian committed Jan 2, 2024
1 parent 904958c commit b60f92d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/edit-site/src/components/page-styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,14 @@ export default function PageStyles() {
return (
<>
<EntityProvider kind="root" type="site">
<Page small>
<GlobalStylesUI initialPath={ activeView } root={ false } />
</Page>
{ activeView && (
<Page small>
<GlobalStylesUI
initialPath={ activeView }
root={ false }
/>
</Page>
) }
<Page>
<div className="edit-site-page-pages-preview">
<StyleBookPanel />
Expand Down

0 comments on commit b60f92d

Please sign in to comment.