rapid-spreadjs 1.0.169 → 1.0.170

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/dist/index.cjs.js CHANGED
@@ -1469,7 +1469,7 @@ const BusinessUtils = {
1469
1469
  }
1470
1470
  }
1471
1471
  let rowObjs = { row: parseInt(rowIndexKey), rows: curRowIndexs, cells: cellItems, hasValue: curRowHasValue };
1472
- if (!rowCells.some((x) => x.rowSpan == seqColSpanObj.row)) {
1472
+ if (seqColSpanObj && !rowCells.some((x) => x.rowSpan == seqColSpanObj.row)) {
1473
1473
  let rowIndexs = [];
1474
1474
  const seqColSpanRowSpan = sheet.getSpans({ row: seqColSpanObj.row, col: 1, rowCount: 1, colCount: 1 })[0];
1475
1475
  for (let i = 0; i < seqColSpanRowSpan.rowCount; i++) {
@@ -1482,8 +1482,10 @@ const BusinessUtils = {
1482
1482
  });
1483
1483
  }
1484
1484
  else {
1485
- let curRow = rowCells.find((x) => x.rowSpan == seqColSpanObj.row);
1486
- curRow.rows.push(rowObjs);
1485
+ if (seqColSpanObj) {
1486
+ let curRow = rowCells.find((x) => x.rowSpan == seqColSpanObj.row);
1487
+ curRow.rows.push(rowObjs);
1488
+ }
1487
1489
  }
1488
1490
  });
1489
1491
  // 有值和没有值的行索引集合