diff --git a/packages/editor/src/dataviews/actions/utils.ts b/packages/editor/src/dataviews/actions/utils.ts index 14da130789b08..efbb7c590e651 100644 --- a/packages/editor/src/dataviews/actions/utils.ts +++ b/packages/editor/src/dataviews/actions/utils.ts @@ -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 ); }