FIX: prevents exception if report doest define filters (#7532)

FIX: prevents exception if report doest define filters (#7532)

diff --git a/app/assets/javascripts/admin/components/admin-report.js.es6 b/app/assets/javascripts/admin/components/admin-report.js.es6
index a638a81..fffa19d 100644
--- a/app/assets/javascripts/admin/components/admin-report.js.es6
+++ b/app/assets/javascripts/admin/components/admin-report.js.es6
@@ -68,8 +68,8 @@ export default Ember.Component.extend({
     this._reports = [];
   },
 
-  startDate: Ember.computed.alias("filters.startDate"),
-  endDate: Ember.computed.alias("filters.endDate"),
+  startDate: Ember.computed.reads("filters.startDate"),
+  endDate: Ember.computed.reads("filters.endDate"),
 
   didReceiveAttrs() {
     this._super(...arguments);

GitHub sha: df182438

1 Like