Skip to content

Build your personal knowledge base with Trilium Notes

client: Fix switching notes, default text

Elian Doranc2959fe52d99
diff --git a/src/public/app/widgets/type_widgets/mind_map.js b/src/public/app/widgets/type_widgets/mind_map.js
index 1f4dc49688..ef7ac39b05 100644
--- a/src/public/app/widgets/type_widgets/mind_map.js
+++ b/src/public/app/widgets/type_widgets/mind_map.js
@@ -33,16 +33,12 @@ export default class MindMapWidget extends TypeWidget {
el: this.$content[0],
direction: MindElixir.LEFT
});
- mind.init(MindElixir.new("hello"));
+ mind.init(MindElixir.new());
});
super.doRender();
}
- cleanup() {
- this.$widget.empty();
- }
-
async entitiesReloadedEvent({loadResults}) {
if (loadResults.isNoteReloaded(this.noteId)) {
this.refresh();