Commit bca8d6d0 by Idan Zalzberg Committed by Torkel Ödegaard

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 []
parent 0764a431
...@@ -82,7 +82,7 @@ class SingleStatCtrl extends MetricsPanelCtrl { ...@@ -82,7 +82,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
} }
onDataError(err) { onDataError(err) {
this.onDataReceived({data: []}); this.onDataReceived([]);
} }
onDataReceived(dataList) { onDataReceived(dataList) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment