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:
committed by
Torkel Ödegaard
parent
0764a4313b
commit
bca8d6d07b
@@ -82,7 +82,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
||||
}
|
||||
|
||||
onDataError(err) {
|
||||
this.onDataReceived({data: []});
|
||||
this.onDataReceived([]);
|
||||
}
|
||||
|
||||
onDataReceived(dataList) {
|
||||
|
||||
Reference in New Issue
Block a user