diff --git a/manage/filters.js b/manage/filters.js index 77f294a3..20fa7a47 100644 --- a/manage/filters.js +++ b/manage/filters.js @@ -296,6 +296,10 @@ function reapplyFilter(container = installed) { function showFiltersStats() { + if (!BG.cachedStyles.list) { + debounce(showFiltersStats); + return; + } $('#filters').classList.toggle('active', filtersSelector.hide !== ''); const numTotal = BG.cachedStyles.list.length; const numHidden = installed.getElementsByClassName('entry hidden').length;