|
@@ -186,7 +186,9 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
|
|
|
data.flotpairs = [];
|
|
data.flotpairs = [];
|
|
|
|
|
|
|
|
if ($scope.series && $scope.series.length > 0) {
|
|
if ($scope.series && $scope.series.length > 0) {
|
|
|
- var lastValue = _.last($scope.series[0].datapoints)[0];
|
|
|
|
|
|
|
+ var lastPoint = _.last($scope.series[0].datapoints);
|
|
|
|
|
+ var lastValue = _.isArray(lastPoint) ? lastPoint[0] : null;
|
|
|
|
|
+
|
|
|
if (_.isString(lastValue)) {
|
|
if (_.isString(lastValue)) {
|
|
|
data.value = 0;
|
|
data.value = 0;
|
|
|
data.valueFormated = lastValue;
|
|
data.valueFormated = lastValue;
|