dtable-statistic 5.0.42-alpha.33 → 5.0.42-alpha.34

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.
@@ -626,11 +626,13 @@ const updatedOneDimensionToTable = _ref5 => {
626
626
 
627
627
  // total column
628
628
  const column = columnMap['total'];
629
- console.log('column', column);
630
- console.log('row', row);
631
- console.log('item', item);
632
- updateRow[_reactIntlUniversal.default.get('Total')] = rowTotal;
633
- oldRow[_reactIntlUniversal.default.get('Total')] = rowTotal;
629
+ if (column) {
630
+ console.log('column', column);
631
+ console.log('row', row);
632
+ console.log('item', item);
633
+ updateRow[column.key] = rowTotal;
634
+ oldRow[column.key] = row[column.key];
635
+ }
634
636
  if (Object.keys(updateRow).length > 0) {
635
637
  console.log(222);
636
638
  const rowId = row._id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.0.42-alpha.33",
3
+ "version": "5.0.42-alpha.34",
4
4
  "description": "statistics",
5
5
  "main": "dist/dtable-statistic.js",
6
6
  "author": "seafile",