浏览代码

fix: graph fix for decimals, bug introduced by #61313478063b0e0721f204847f3c0298ea8f593f

Torkel Ödegaard 8 年之前
父节点
当前提交
17cb3f6e6a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/plugins/panel/graph/graph.ts

+ 1 - 1
public/app/plugins/panel/graph/graph.ts

@@ -498,7 +498,7 @@ coreModule.directive('grafanaGraph', function($rootScope, timeSrv, popoverSrv) {
           logBase: panel.yaxes[0].logBase || 1,
           min: panel.yaxes[0].min ? _.toNumber(panel.yaxes[0].min) : null,
           max: panel.yaxes[0].max ? _.toNumber(panel.yaxes[0].max) : null,
-          tickDecimals: panel.yaxes[0].decimals !== null ? _.toNumber(panel.yaxes[0].decimals): null
+          tickDecimals: panel.yaxes[0].decimals
         };
 
         options.yaxes.push(defaults);