From bca8d6d07b1beb57e1c8bf51bcc004167025d792 Mon Sep 17 00:00:00 2001 From: Idan Zalzberg Date: Wed, 4 May 2016 15:48:01 +0700 Subject: [PATCH] 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 [] --- public/app/plugins/panel/singlestat/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/panel/singlestat/module.ts b/public/app/plugins/panel/singlestat/module.ts index 3c0b9e5342a..f76a41bfa86 100644 --- a/public/app/plugins/panel/singlestat/module.ts +++ b/public/app/plugins/panel/singlestat/module.ts @@ -82,7 +82,7 @@ class SingleStatCtrl extends MetricsPanelCtrl { } onDataError(err) { - this.onDataReceived({data: []}); + this.onDataReceived([]); } onDataReceived(dataList) {