diff --git a/package.json b/package.json index d5b72bf..3770690 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "LightPivotTable", "author": "ZitRo", - "version": "1.1.1", + "version": "1.1.2", "description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache", "main": "test/testServer.js", "repository": { diff --git a/source/js/PivotView.js b/source/js/PivotView.js index 2ef03d0..fbf4d49 100644 --- a/source/js/PivotView.js +++ b/source/js/PivotView.js @@ -807,7 +807,7 @@ PivotView.prototype.renderRawData = function (data) { } else { // number if (format) { // set format element.textContent = value ? _.numeral(value).format(format) : ""; - } else if (value && info.defaultFormat) { + } else if (value) { element.textContent = _.numeral(value).format( value % 1 === 0 ? "#,###" : "#,###.##" );