onDataError was calling onDataReceived with {data : []} which breaks at the first line since object has no map function. The correct form is probably just []
@@ -82,7 +82,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
}
onDataError(err) {
- this.onDataReceived({data: []});
+ this.onDataReceived([]);
onDataReceived(dataList) {