mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 16:33:59 +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
|
||||
refreshReport(options = {}) {
|
||||
if (!this.attrs.onRefresh) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.attrs.onRefresh({
|
||||
type: this.get("model.type"),
|
||||
chartGrouping: options.chartGrouping,
|
||||
|
|
Loading…
Reference in New Issue
Block a user