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:
Idan Zalzberg 2016-05-04 15:48:01 +07:00 committed by Torkel Ödegaard
parent 0764a4313b
commit bca8d6d07b

View File

@ -82,7 +82,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
}
onDataError(err) {
this.onDataReceived({data: []});
this.onDataReceived([]);
}
onDataReceived(dataList) {