dtable-statistic 5.0.42-alpha.13 → 5.0.42-alpha.15

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.
@@ -515,9 +515,6 @@ const updatedOneDimensionToTable = _ref5 => {
515
515
  const groupName = isEmptyName(original_name) ? _reactIntlUniversal.default.get(_constants.EMPTY_NAME) : name;
516
516
  const row = tableRows.find(row => row[nameColumn.key] === groupName);
517
517
  const totalColumn = columnMap['total'];
518
- console.log('updateTable', updateTable);
519
- console.log('row', row);
520
- console.log('totalColumn', totalColumn);
521
518
  if (row) {
522
519
  // update old row
523
520
  let updateRow = {};
@@ -528,9 +525,13 @@ const updatedOneDimensionToTable = _ref5 => {
528
525
  oldRow[totalColumn.key] = row[totalColumn.key];
529
526
  }
530
527
  const validSummaryCellValue = getValidValueForColumn(summaryColumn, total.total);
528
+ console.log(33, validSummaryCellValue);
529
+ console.log(44, summaryColumn);
530
+ console.log(55, (0, _cellValue.isCellValueChanged)(row[summaryColumn.key]));
531
531
  if (summaryColumn && (0, _cellValue.isCellValueChanged)(row[summaryColumn.key], validSummaryCellValue, summaryColumn.type)) {
532
532
  updateRow[summaryColumn.key] = validSummaryCellValue;
533
533
  oldRow[summaryColumn.key] = row[summaryColumn.key];
534
+ console.log(66, row[summaryColumn.key]);
534
535
  }
535
536
  if (Object.keys(updateRow).length > 0) {
536
537
  const rowId = row._id;
@@ -551,6 +552,12 @@ const updatedOneDimensionToTable = _ref5 => {
551
552
  newRows.push(newRow);
552
553
  }
553
554
  });
555
+ console.log(22, {
556
+ newRows,
557
+ updatedRows,
558
+ rowIds,
559
+ oldRows
560
+ });
554
561
  return {
555
562
  newRows,
556
563
  updatedRows,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.0.42-alpha.13",
3
+ "version": "5.0.42-alpha.15",
4
4
  "description": "statistics",
5
5
  "main": "dist/dtable-statistic.js",
6
6
  "author": "seafile",