From 3084583dec6a147a8a517a27db67e7406d514db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Thu, 11 Apr 2024 14:13:56 +0200 Subject: [PATCH] Remove logic for template part: it is never used --- .../components/sidebar-navigation-screen-template/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-template/index.js b/packages/edit-site/src/components/sidebar-navigation-screen-template/index.js index fef2a1c546b3d..cc35404f5e0a2 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-template/index.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-template/index.js @@ -93,11 +93,6 @@ function useTemplateDetails( postType, postId ) { return { title, description, content, footer }; } -const POST_TYPE_PATH = { - wp_template: '/wp_template', - wp_template_part: '/wp_template_part/all', -}; - export default function SidebarNavigationScreenTemplate() { const navigator = useNavigator(); const { @@ -119,7 +114,7 @@ export default function SidebarNavigationScreenTemplate() { postId={ postId } toggleProps={ { as: SidebarButton } } onRemove={ () => { - navigator.goTo( POST_TYPE_PATH[ postType ] ); + navigator.goTo( postType ); } } />