Skip to content

Commit

Permalink
Fix double check in isTemplateRemovable (WordPress#63021)
Browse files Browse the repository at this point in the history
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: youknowriad <[email protected]>
  • Loading branch information
3 people authored Jul 1, 2024
1 parent da23882 commit 2e367a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/editor/src/dataviews/actions/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ export function isTemplateRemovable( template: TemplateOrTemplatePart ) {
return (
[ template.source, template.source ].includes(
TEMPLATE_ORIGINS.custom
) &&
! template.has_theme_file &&
! template?.has_theme_file
) && ! template.has_theme_file
);
}

0 comments on commit 2e367a1

Please sign in to comment.