Skip to content

Commit

Permalink
Fix error for deleteRule
Browse files Browse the repository at this point in the history
  • Loading branch information
beque committed Oct 14, 2024
1 parent 4b07a80 commit e13f887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/packs/src/components/reactQuill/ToolbarDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class ToolbarDropdown extends React.Component {

componentWillUnmount() {
try {
this.sheet.deleteRule(this.ruleId, this.sheet.cssRules.length - 1);
this.sheet.deleteRule(this.ruleId - 1);
} catch (err) {
console.log(err);
}
Expand Down

0 comments on commit e13f887

Please sign in to comment.