mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 14:03:39 +08:00
FIX: Some admin reports (notably backups) were not showing up
This commit is contained in:
parent
e870c09438
commit
1f74ea0f08
|
@ -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,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user