Skip to content

Commit

Permalink
chore: revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
1wkk committed Jul 27, 2023
1 parent 7591e13 commit e20defc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/s2-core/src/sheet-type/spread-sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,12 +371,12 @@ export abstract class SpreadSheet extends EE {
dataCfg: T extends true ? S2DataConfig : Partial<S2DataConfig>,
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);
}
Expand Down

0 comments on commit e20defc

Please sign in to comment.