correct it so when we have no dates we still return graphs

This commit is contained in:
Sam
2018-05-14 11:12:52 +10:00
parent 9d9332d8c9
commit 9d97e1244e
6 changed files with 9 additions and 10 deletions
@@ -83,7 +83,6 @@ export default Ember.Component.extend(AsyncReport, {
ajax(this.get("dataSource"), payload)
.then((response) => {
this.set('reportKey', response.report.report_key);
this.loadReport(response.report);
})
.finally(() => {
@@ -100,7 +99,7 @@ export default Ember.Component.extend(AsyncReport, {
},
loadReport(report) {
if (report.data) {
if (_.isArray(report.data)) {
Report.fillMissingDates(report);
if (report.data && report.data.length > 40) {