Commit 7af4daf2 by Torkel Ödegaard Committed by GitHub

Revert "Fix coloring in singlestat if null value (#9438)" (#9443)

This reverts commit 213ba037.
parent 213ba037
...@@ -589,8 +589,8 @@ class SingleStatCtrl extends MetricsPanelCtrl { ...@@ -589,8 +589,8 @@ class SingleStatCtrl extends MetricsPanelCtrl {
var body = panel.gauge.show ? '' : getBigValueHtml(); var body = panel.gauge.show ? '' : getBigValueHtml();
if (panel.colorBackground && !isNaN(Number(data.valueFormatted))) { if (panel.colorBackground && !isNaN(data.value)) {
var color = getColorForValue(data, Number(data.valueFormatted)); var color = getColorForValue(data, data.value);
if (color) { if (color) {
$panelContainer.css('background-color', color); $panelContainer.css('background-color', color);
if (scope.fullscreen) { if (scope.fullscreen) {
......
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