diff -u b/core/modules/views_ui/js/views-admin.es6.js b/core/modules/views_ui/js/views-admin.es6.js
--- b/core/modules/views_ui/js/views-admin.es6.js
+++ b/core/modules/views_ui/js/views-admin.es6.js
@@ -518,7 +518,6 @@
       const group = this.$controlGroup.val();
 
       // Search through the search texts in the form for matching text.
-      var activeViews = 0;
       this.options.forEach((option) => {
         function hasWord(word) {
           return option.searchText.indexOf(word) !== -1;
@@ -526,6 +525,7 @@
       const group = this.$controlGroup.val();
 
       // Search through the search texts in the form for matching text.
+      let activeViews = 0;
       this.options.forEach((option) => {
         function hasWord(word) {
           return option.searchText.indexOf(word) !== -1;
