Skip to content

Commit

Permalink
Remove unnecessary backPath: it is managed by the details page
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Apr 11, 2024
1 parent c66a62e commit 9037626
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import AddNewTemplate from '../add-new-template';
import { useAddedBy } from './hooks';
import {
TEMPLATE_POST_TYPE,
TEMPLATE_PART_POST_TYPE,
ENUMERATION_TYPE,
OPERATOR_IS_ANY,
LAYOUT_GRID,
Expand Down Expand Up @@ -102,11 +101,6 @@ function Title( { item, viewType } ) {
canvas: 'edit',
},
};
if ( item.type === TEMPLATE_PART_POST_TYPE ) {
linkProps.state = {
backPath: '/wp_template_part/all',
};
}
return (
<Link { ...linkProps }>
{ decodeEntities( item.title?.rendered ) || __( '(no title)' ) }
Expand Down

0 comments on commit 9037626

Please sign in to comment.