Skip to content

Commit

Permalink
chore(sheet): test object matrix get discrete ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushusir committed Sep 14, 2024
1 parent f0b9d10 commit 35ae99e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/shared/__tests__/object-matrix.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe('test ObjectMatrix', () => {
expect(range).toStrictEqual([{
endColumn: 1,
endRow: 0,
startColumn: 1,
startColumn: 0,
startRow: 0,
}]);
});
Expand Down
6 changes: 0 additions & 6 deletions packages/core/src/shared/object-matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,12 +671,6 @@ export class ObjectMatrix<T> {
// Traverse column by column
Object.keys(row).forEach((col) => {
const c = Number(col);

// Filter out empty objects
if (Tools.isEmptyObject(row[c])) {
return; // Skip empty objects
}

let merged = false;
// Check if it can be merged with any of the existing ranges
for (const range of ranges) {
Expand Down

0 comments on commit 35ae99e

Please sign in to comment.