Skip to content

Commit

Permalink
fix: Fixes issue where removing types from the callout manager was re…
Browse files Browse the repository at this point in the history
…moving the wrong type
  • Loading branch information
valentine195 committed Mar 29, 2022
1 parent 1a73421 commit a3435c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/callout/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class CalloutManager extends Component {
//build sheet for custom admonitions

document.head.appendChild(this.style);

for (const admonition of Object.values(
this.plugin.data.userAdmonitions
)) {
Expand Down Expand Up @@ -188,7 +188,7 @@ export default class CalloutManager extends Component {
...this.indexing.filter((type) => type != admonition.type),
admonition.type
];
this.sheet.insertRule(rule /* , this.sheet.cssRules.length */);
this.sheet.insertRule(rule, this.sheet.cssRules.length);
this.updateSnippet();
}
indexing: string[] = [];
Expand Down

0 comments on commit a3435c7

Please sign in to comment.