mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
singlestat/module.ts onDataError was calling onDataReceived incorrectly (#4897)
onDataError was calling onDataReceived with {data : []} which breaks at the first line since object has no map function. The correct form is probably just []
This commit is contained in:
parent
0764a4313b
commit
bca8d6d07b
@ -82,7 +82,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
||||
}
|
||||
|
||||
onDataError(err) {
|
||||
this.onDataReceived({data: []});
|
||||
this.onDataReceived([]);
|
||||
}
|
||||
|
||||
onDataReceived(dataList) {
|
||||
|
Loading…
Reference in New Issue
Block a user