Skip to content

Commit

Permalink
fix: fixes issue where trying to add a copy content button to a callo…
Browse files Browse the repository at this point in the history
…ut with no content
  • Loading branch information
valentine195 committed Sep 14, 2023
1 parent 523ca6a commit 10db45a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/callout/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 10db45a

Please sign in to comment.