@isoftdata/utility-dashboard-backend 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/chart-helper.js +2 -2
  2. package/package.json +1 -1
package/chart-helper.js CHANGED
@@ -221,9 +221,9 @@ module.exports = {
221
221
  if (rowIndex > 0) {
222
222
  row.c.forEach((col, colIndex) => {
223
223
  if (colIndex > 0 && col.v == null) {
224
- col.v = dataTable.rows[rowIndex - 1].c[colIndex].v
224
+ col.v = Number(dataTable.rows[rowIndex - 1].c[colIndex].v)
225
225
  } else if (colIndex > 0) {
226
- col.v = col.v + dataTable.rows[rowIndex - 1].c[colIndex].v
226
+ col.v = Number(col.v) + Number(dataTable.rows[rowIndex - 1].c[colIndex].v)
227
227
  }
228
228
  })
229
229
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/utility-dashboard-backend",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A utility for formatting chart and report data to be usable by the frontend dashboard component.",
5
5
  "main": "index.js",
6
6
  "scripts": {