mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 05:45:17 +08:00
FIX: Removes an error in the console in test mode
This commit is contained in:
parent
d266baff2b
commit
0b3f963804
|
@ -234,6 +234,10 @@ export default Component.extend({
|
||||||
|
|
||||||
@action
|
@action
|
||||||
refreshReport(options = {}) {
|
refreshReport(options = {}) {
|
||||||
|
if (!this.attrs.onRefresh) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.attrs.onRefresh({
|
this.attrs.onRefresh({
|
||||||
type: this.get("model.type"),
|
type: this.get("model.type"),
|
||||||
chartGrouping: options.chartGrouping,
|
chartGrouping: options.chartGrouping,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user