FIX: Removes an error in the console in test mode

FIX: Removes an error in the console in test mode

diff --git a/app/assets/javascripts/admin/components/admin-report.js b/app/assets/javascripts/admin/components/admin-report.js
index 234959f..aac884d 100644
--- a/app/assets/javascripts/admin/components/admin-report.js
+++ b/app/assets/javascripts/admin/components/admin-report.js
@@ -234,6 +234,10 @@ export default Component.extend({
 
   @action
   refreshReport(options = {}) {
+    if (!this.attrs.onRefresh) {
+      return;
+    }
+
     this.attrs.onRefresh({
       type: this.get("model.type"),
       chartGrouping: options.chartGrouping,

GitHub sha: 0b3f9638