From 002e1f560a657bcc85d6668689da51ef46ab8f2c Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 1 May 2019 10:27:19 +0530 Subject: [PATCH] FIX: initialize empty object if no custom filters are present --- app/assets/javascripts/admin/components/admin-report.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/components/admin-report.js.es6 b/app/assets/javascripts/admin/components/admin-report.js.es6 index 05babdbdf45..cc18c919611 100644 --- a/app/assets/javascripts/admin/components/admin-report.js.es6 +++ b/app/assets/javascripts/admin/components/admin-report.js.es6 @@ -214,7 +214,7 @@ export default Ember.Component.extend({ }, exportCsv() { - const customFilters = this.get("filters.customFilters"); + const customFilters = this.get("filters.customFilters") || {}; exportEntity("report", { name: this.get("model.type"),