Skip to content

Commit

Permalink
do not go to navigation post type edit in the frame when navigating t…
Browse files Browse the repository at this point in the history
…o a navigation in the site editor
  • Loading branch information
draganescu committed Feb 24, 2024
1 parent 5be7d52 commit 4f5bb92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ export function SidebarNavigationScreenWrapper( {
}

const NavMenuItem = ( { postId, ...props } ) => {
const linkInfo = useLink( {
postId,
postType: NAVIGATION_POST_TYPE,
} );
const linkInfo = useLink( { path: `/navigation/${ postId }` } );
return <SidebarNavigationItem { ...linkInfo } { ...props } />;
};
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function SidebarScreens() {
<SidebarScreenWrapper path="/navigation">
<SidebarNavigationScreenNavigationMenus />
</SidebarScreenWrapper>
<SidebarScreenWrapper path="/navigation/:postType/:postId">
<SidebarScreenWrapper path="/navigation/:postId">
<SidebarNavigationScreenNavigationMenu />
</SidebarScreenWrapper>
<SidebarScreenWrapper path="/wp_global_styles">
Expand Down

0 comments on commit 4f5bb92

Please sign in to comment.