From e20defcd4b5b74a26a4ab7d165ddcd771d1e495e Mon Sep 17 00:00:00 2001 From: tyr1dev Date: Thu, 27 Jul 2023 14:25:53 +0800 Subject: [PATCH] chore: revert some changes --- packages/s2-core/src/sheet-type/spread-sheet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/s2-core/src/sheet-type/spread-sheet.ts b/packages/s2-core/src/sheet-type/spread-sheet.ts index 0097195866..15011dedea 100644 --- a/packages/s2-core/src/sheet-type/spread-sheet.ts +++ b/packages/s2-core/src/sheet-type/spread-sheet.ts @@ -371,12 +371,12 @@ export abstract class SpreadSheet extends EE { dataCfg: T extends true ? S2DataConfig : Partial, reset?: T, ) { + this.store.set('originalDataCfg', this.dataCfg); if (reset) { this.dataCfg = getSafetyDataConfig(dataCfg); } else { this.dataCfg = getSafetyDataConfig(this.dataCfg, dataCfg); } - this.store.set('originalDataCfg', this.dataCfg); // clear value ranger after each updated data cfg clearValueRangeState(this); }