diff --git a/packages/edit-site/src/components/global-styles-sidebar/index.js b/packages/edit-site/src/components/global-styles-sidebar/index.js index 966005907cda4a..81005a9cc504a5 100644 --- a/packages/edit-site/src/components/global-styles-sidebar/index.js +++ b/packages/edit-site/src/components/global-styles-sidebar/index.js @@ -86,21 +86,17 @@ export default function GlobalStylesSidebar() { }, [ shouldClearCanvasContainerView ] ); const { setIsListViewOpened } = useDispatch( editorStore ); - const { goTo } = useNavigator(); const toggleRevisions = () => { setIsListViewOpened( false ); if ( isRevisionsStyleBookOpened ) { - goTo( '/' ); setEditorCanvasContainerView( 'style-book' ); return; } if ( isRevisionsOpened ) { - goTo( '/' ); setEditorCanvasContainerView( undefined ); return; } - goTo( '/revisions' ); if ( isStyleBookOpened ) { setEditorCanvasContainerView( diff --git a/packages/edit-site/src/components/global-styles/ui.js b/packages/edit-site/src/components/global-styles/ui.js index 260f20a90638ca..2f47979c14c8df 100644 --- a/packages/edit-site/src/components/global-styles/ui.js +++ b/packages/edit-site/src/components/global-styles/ui.js @@ -70,10 +70,8 @@ function GlobalStylesActionMenu() { const { setEditorCanvasContainerView } = unlock( useDispatch( editSiteStore ) ); - const { goTo } = useNavigator(); const loadCustomCSS = () => { setEditorCanvasContainerView( 'global-styles-css' ); - goTo( '/css' ); }; return (