Skip to content

Commit

Permalink
fix: cutting to the target range does not require filtering merge cel…
Browse files Browse the repository at this point in the history
…ls of the same size (#3976)
  • Loading branch information
ybzky authored Nov 6, 2024
1 parent 47cae07 commit a2c292e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/sheets-ui/src/controllers/clipboard/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@ export function getMoveRangeMutations(
.map((mergeRange) => Rectangle.getRelativeRange(mergeRange, fromRange))
.map((relativeRange) => Rectangle.getPositionRange(relativeRange, toRange));

const addMergeCellRanges = getAddMergeMutationRangeByType(willMoveToMergeRanges).filter(
(range) => !toMergeData.some((mergeRange) => Rectangle.equals(range, mergeRange))
);
const addMergeCellRanges = getAddMergeMutationRangeByType(willMoveToMergeRanges);

const mergeRedos: Array<{
id: string;
Expand Down

0 comments on commit a2c292e

Please sign in to comment.