diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php
index 804a239e61..435abfe415 100644
--- a/src/wp-admin/themes.php
+++ b/src/wp-admin/themes.php
@@ -360,8 +360,8 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
- <# if ( ! data.active && data.actions.delete ) { #>
-
+ <# if ( ! data.active && data.actions['delete'] ) { #>
+
<# } #>