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) {
|
onDataError(err) {
|
||||||
this.onDataReceived({data: []});
|
this.onDataReceived([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
onDataReceived(dataList) {
|
onDataReceived(dataList) {
|
||||||
|
|||||||
Reference in New Issue
Block a user