FIX: Some admin reports (notably backups) were not showing up

This commit is contained in:
Robin Ward 2021-06-29 14:49:57 -04:00
parent e870c09438
commit 1f74ea0f08
1 changed files with 7 additions and 4 deletions

View File

@ -300,7 +300,6 @@ export default Component.extend({
return;
}
}
if (report.error === "not_found") {
this.set("showFilteringUI", false);
}
@ -385,11 +384,15 @@ export default Component.extend({
);
} else {
const chartOptions = JSON.parse(JSON.stringify(CHART_OPTIONS));
let chartGrouping = this.get("reportOptions.chartGrouping");
if (!chartGrouping && report.chartData) {
chartGrouping = Report.groupingForDatapoints(report.chartData.length);
}
return EmberObject.create(
Object.assign(chartOptions, this.get("reportOptions.chart") || {}, {
chartGrouping:
this.get("reportOptions.chartGrouping") ||
Report.groupingForDatapoints(report.chartData.length),
chartGrouping,
})
);
}