Skip to content

Commit

Permalink
[live-demo] Don't add notes if there is none (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySharabin authored Jun 23, 2024
1 parent 813b98e commit e792b77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/live-demo/live-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ export default class LiveDemo {
});

if (!this.minimal) {
this.controls.append($("details.notes", this.container));
let notes = $("details.notes", this.container);
if (notes) {
this.controls.append(notes);
}
}

if (!this.isolated) {
Expand Down

0 comments on commit e792b77

Please sign in to comment.