Skip to content

Commit

Permalink
On removing the template part from the command bar, go back to patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Apr 11, 2024
1 parent 3084583 commit c09f5d2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ function useManipulateDocumentCommands() {
decodeEntities( template.title )
);
const path =
template.type === TEMPLATE_POST_TYPE
? '/wp_template'
: '/wp_template_part/all';
template.type === TEMPLATE_POST_TYPE ? '/wp_template' : '/patterns';
commands.push( {
name: 'core/remove-template',
label,
Expand Down

0 comments on commit c09f5d2

Please sign in to comment.