mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Singlestat: fixed decimal issue when value was 1, Fixes #1066
This commit is contained in:
parent
640c558446
commit
bde138177d
@ -125,7 +125,7 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
|
||||
|
||||
$scope.getDecimalsForValue = function(value) {
|
||||
var opts = {};
|
||||
if (value === 0) {
|
||||
if (value === 0 || value === 1) {
|
||||
return { decimals: 0, scaledDecimals: 0 };
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user