Skip to content

Commit

Permalink
Site editor: fix back link from “Navigation” items in mobile web (#69192
Browse files Browse the repository at this point in the history
)

Co-authored-by: stokesman <[email protected]>
Co-authored-by: t-hamano <[email protected]>
  • Loading branch information
3 people authored Feb 14, 2025
1 parent 3df54ec commit a34e9c4
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { privateApis as routerPrivateApis } from '@wordpress/router';
/**
* Internal dependencies
*/
import { NAVIGATION_POST_TYPE } from '../../utils/constants';
import Editor from '../editor';
import SidebarNavigationScreenNavigationMenu from '../sidebar-navigation-screen-navigation-menu';
import { unlock } from '../../lock-unlock';
Expand All @@ -20,9 +19,7 @@ function MobileNavigationItemView() {
return canvas === 'edit' ? (
<Editor />
) : (
<SidebarNavigationScreenNavigationMenu
backPath={ { postType: NAVIGATION_POST_TYPE } }
/>
<SidebarNavigationScreenNavigationMenu backPath="/navigation" />
);
}

Expand Down

0 comments on commit a34e9c4

Please sign in to comment.