Skip to content

Commit

Permalink
Global styles: do not navigate twice to home screen on sidebar load
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 20, 2024
1 parent 5e37a13 commit 34c3550
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/edit-site/src/components/global-styles/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,9 @@ function GlobalStylesEditorCanvasContainerLink() {
* Exclude revisions panel from this behavior,
* as it should close when the editorCanvasContainerView doesn't correspond.
*/
if ( path !== '/' && ! isRevisionsOpen ) {
return;
if ( path !== '/' && isRevisionsOpen ) {
goTo( '/' );
}
goTo( '/' );
break;
}
}, [ editorCanvasContainerView, isRevisionsOpen, goTo ] );
Expand Down

0 comments on commit 34c3550

Please sign in to comment.