diff --git a/src/callout/manager.ts b/src/callout/manager.ts index 9714947..a533537 100644 --- a/src/callout/manager.ts +++ b/src/callout/manager.ts @@ -72,8 +72,9 @@ export default class CalloutManager extends Component { } if ( - this.plugin.admonitions[type].copy ?? - this.plugin.data.copyButton + content && + (this.plugin.admonitions[type].copy ?? + this.plugin.data.copyButton) ) { let copy = content.createDiv("admonition-content-copy"); setIcon(copy, "copy");