Skip to content

Commit

Permalink
fix: delete undo redo (#1781)
Browse files Browse the repository at this point in the history
  • Loading branch information
weird94 authored Apr 2, 2024
1 parent a2dd33d commit 8d8e615
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ export class SheetDataValidationManager extends DataValidationManager<ISheetData
this._ruleMatrix = new RuleMatrix(matrix);
}

override addRule(rule: ISheetDataValidationRule): void {
override addRule(rule: ISheetDataValidationRule, index?: number): void {
this._ruleMatrix.addRule(rule);
this._dataValidationCacheService.addRule(this.unitId, this.subUnitId, rule);
this._dataValidationFormulaService.addRule(this.unitId, this.subUnitId, rule.uid, rule.formula1, rule.formula2);
this._dataValidationCustomFormulaService.addRule(this.unitId, this.subUnitId, rule);
super.addRule(rule);
super.addRule(rule, index);
}

override updateRule(ruleId: string, payload: IUpdateRulePayload) {
Expand Down

0 comments on commit 8d8e615

Please sign in to comment.