From a0469ee8dcd09deec434b5d592f77533a8bf162d Mon Sep 17 00:00:00 2001 From: wpxp123456 Date: Sat, 31 Aug 2024 18:41:20 +0800 Subject: [PATCH] fix(formula): fix paste --- .../src/controllers/formula-clipboard.controller.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts b/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts index 2a477fe0903..9164d042a1e 100644 --- a/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts +++ b/packages/sheets-formula/src/controllers/formula-clipboard.controller.ts @@ -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: [],