Skip to content

Commit

Permalink
fix(formula): fix paste
Browse files Browse the repository at this point in the history
  • Loading branch information
wpxp123456 authored and wpxp123456 committed Aug 31, 2024
1 parent bd2856a commit a0469ee
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,7 @@ export class FormulaClipboardController extends Disposable {
isSpecialPaste: boolean
) {
// Intercept scenarios where formulas do not need to be processed, and only process default paste and paste formulas only
if (
[
PREDEFINED_HOOK_NAME.SPECIAL_PASTE_FORMAT,
PREDEFINED_HOOK_NAME.SPECIAL_PASTE_COL_WIDTH,
PREDEFINED_HOOK_NAME.SPECIAL_PASTE_BESIDES_BORDER,
].includes(payload.pasteType)
) {
if ([PREDEFINED_HOOK_NAME.SPECIAL_PASTE_FORMAT, PREDEFINED_HOOK_NAME.SPECIAL_PASTE_COL_WIDTH].includes(payload.pasteType)) {
return {
undos: [],
redos: [],
Expand Down

0 comments on commit a0469ee

Please sign in to comment.