From 0b3f9638047a37bf6626bf2d6aa74299be5cd55e Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 31 Jul 2020 14:06:40 -0400 Subject: [PATCH] FIX: Removes an error in the console in test mode --- app/assets/javascripts/admin/components/admin-report.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/admin/components/admin-report.js b/app/assets/javascripts/admin/components/admin-report.js index 234959f1753..aac884dd80f 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,