FIX: better handling of category filter deselection (#7468)

FIX: better handling of category filter deselection (#7468)

diff --git a/app/assets/javascripts/admin/components/admin-report.js.es6 b/app/assets/javascripts/admin/components/admin-report.js.es6
index 0d8ce63..a638a81 100644
--- a/app/assets/javascripts/admin/components/admin-report.js.es6
+++ b/app/assets/javascripts/admin/components/admin-report.js.es6
@@ -207,6 +207,7 @@ export default Ember.Component.extend({
 
     refreshReport() {
       this.attrs.onRefresh({
+        type: this.get("model.type"),
         startDate: this.get("startDate"),
         endDate: this.get("endDate"),
         filters: this.get("filters.customFilters")
diff --git a/app/assets/javascripts/admin/components/report-filters/category.js.es6 b/app/assets/javascripts/admin/components/report-filters/category.js.es6
index d1c910a..7efdd4a 100644
--- a/app/assets/javascripts/admin/components/report-filters/category.js.es6
+++ b/app/assets/javascripts/admin/components/report-filters/category.js.es6
@@ -10,5 +10,11 @@ export default FilterComponent.extend({
   @computed("filter.default")
   category(categoryId) {
     return Category.findById(categoryId);
+  },
+
+  actions: {
+    onDeselect() {
+      this.applyFilter(this.get("filter.id"), undefined);
+    }
   }
 });
diff --git a/app/assets/javascripts/admin/templates/components/report-filters/category.hbs b/app/assets/javascripts/admin/templates/components/report-filters/category.hbs
index 9ad96c6..94aa60f 100644
--- a/app/assets/javascripts/admin/templates/components/report-filters/category.hbs
+++ b/app/assets/javascripts/admin/templates/components/report-filters/category.hbs
@@ -3,4 +3,5 @@
   value=category
   castInteger=true
   onSelectNone=(action "onChange")
+  onDeselect=(action "onDeselect")
   onSelect=(action "onChange")}}

GitHub sha: 75591664