dtable-statistic 5.0.38-alpha.1 → 5.0.38-alpha.2
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.
|
@@ -22,6 +22,7 @@ const isSummaryDateColumn = summaryColumn => {
|
|
|
22
22
|
return type !== _dtableUtils.CellType.LINK && (0, _dtableUtils.isDateColumn)(summaryColumn);
|
|
23
23
|
};
|
|
24
24
|
const getValidValueForColumn = (column, value) => {
|
|
25
|
+
value = Array.isArray(value) && value.length !== 0 ? value[0][1] : value;
|
|
25
26
|
if (!column) return '';
|
|
26
27
|
const {
|
|
27
28
|
type,
|
|
@@ -692,6 +693,7 @@ const updateTwoDimensionToTable = _ref6 => {
|
|
|
692
693
|
const columnName = isEmptyName(key) ? _reactIntlUniversal.default.get(_constants.EMPTY_NAME) : key;
|
|
693
694
|
const column = columnMap[columnName];
|
|
694
695
|
let validCellValue = getValidValueForColumn(column, cells[key].total);
|
|
696
|
+
console.log('66', validCellValue);
|
|
695
697
|
if (column && (0, _cellValue.isCellValueChanged)(row[column.key], validCellValue, column.type)) {
|
|
696
698
|
updatedRow[column.key] = validCellValue;
|
|
697
699
|
oldRow[column.key] = row[column.key];
|