@campxdev/shared 2.0.6 → 2.0.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -117,6 +117,8 @@ export default function Table<T>({
117
117
  ? col.render(row[col.dataIndex], row, colIndex)
118
118
  : _.get(row, col.dataIndex)
119
119
 
120
+ console.log(colValue)
121
+
120
122
  if (!totalCount[colIndex]) {
121
123
  totalCount[colIndex] = 0
122
124
  }
@@ -126,7 +128,7 @@ export default function Table<T>({
126
128
  return
127
129
  }
128
130
 
129
- totalCount[colIndex] += colValue
131
+ totalCount[colIndex] += colValue ? colValue : 0
130
132
  })
131
133
  }
132
134