From a3435c7fd47534bf43610f5c4f59085bb6a4450b Mon Sep 17 00:00:00 2001 From: valentine195 <38669521+valentine195@users.noreply.github.com> Date: Tue, 29 Mar 2022 09:09:10 -0400 Subject: [PATCH] fix: Fixes issue where removing types from the callout manager was removing the wrong type --- src/callout/manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callout/manager.ts b/src/callout/manager.ts index 80ed1a2..de5dd1d 100644 --- a/src/callout/manager.ts +++ b/src/callout/manager.ts @@ -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 )) { @@ -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[] = [];