Skip to content

Commit

Permalink
fix(facade): fix handling of empty selections in onSelectionChange
Browse files Browse the repository at this point in the history
…method (#2066)
  • Loading branch information
jikkai authored Apr 24, 2024
1 parent 1002cd6 commit e440e04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/facade/src/apis/sheets/f-workbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ export class FWorkbook {

if (!selections?.length) {
callback([]);
} else {
// TODO@wzhudev: filtered out ranges changes not other currently sheet
callback(selections!.map((s) => s.range));
}

// TODO@wzhudev: filtered out ranges changes not other currently sheet
callback(selections!.map((s) => s.range));
})
);
}
Expand Down

0 comments on commit e440e04

Please sign in to comment.