Skip to content

Commit

Permalink
allow no active view
Browse files Browse the repository at this point in the history
  • Loading branch information
SaxonF committed Nov 27, 2023
1 parent d35a9e5 commit e20faac
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 e20faac

Please sign in to comment.