client: Fix switching notes, default text

This commit is contained in:
Elian Doran 2024-09-01 15:25:28 +03:00
parent 594f816702
commit c2959fe52d
No known key found for this signature in database

View File

@ -33,16 +33,12 @@ export default class MindMapWidget extends TypeWidget {
el: this.$content[0], el: this.$content[0],
direction: MindElixir.LEFT direction: MindElixir.LEFT
}); });
mind.init(MindElixir.new("hello")); mind.init(MindElixir.new());
}); });
super.doRender(); super.doRender();
} }
cleanup() {
this.$widget.empty();
}
async entitiesReloadedEvent({loadResults}) { async entitiesReloadedEvent({loadResults}) {
if (loadResults.isNoteReloaded(this.noteId)) { if (loadResults.isNoteReloaded(this.noteId)) {
this.refresh(); this.refresh();