mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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) {
|
onDataError(err) {
|
||||||
this.onDataReceived({data: []});
|
this.onDataReceived([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
onDataReceived(dataList) {
|
onDataReceived(dataList) {
|
||||||
|
Loading…
Reference in New Issue
Block a user