Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fixes
zadam0226b1e9a87e
diff --git a/src/public/javascripts/services/note_detail_code.js b/src/public/javascripts/services/note_detail_code.jsindex 243b17a32e..d692ffccd7 100644--- a/src/public/javascripts/services/note_detail_code.js+++ b/src/public/javascripts/services/note_detail_code.js@@ -71,7 +71,10 @@ class NoteDetailCode {show() {this.$component.show();- this.codeEditor.refresh();++ if (this.codeEditor) { // show can be called before render+ this.codeEditor.refresh();+ }}getContent() {diff --git a/src/public/javascripts/services/sidebar.js b/src/public/javascripts/services/sidebar.jsindex 739819e61c..e8fc7f19c2 100644--- a/src/public/javascripts/services/sidebar.js+++ b/src/public/javascripts/services/sidebar.js@@ -106,6 +106,7 @@ class Sidebar {}}+ // update at once to reduce flickeringthis.$widgetContainer.empty().append(...widgetsToAppend);}diff --git a/src/public/javascripts/services/tab_context.js b/src/public/javascripts/services/tab_context.jsindex fcd881cdab..f9719e03e4 100644--- a/src/public/javascripts/services/tab_context.js+++ b/src/public/javascripts/services/tab_context.js@@ -426,7 +426,7 @@ class TabContext {for (const parentNote of parents) {const parentNotePath = await treeService.getSomeNotePath(parentNote);// this is to avoid having root notes leading '/'- const notePath = parentNotePath ? (parentNotePath + '/' + this.noteId) : this.noteId;+ const notePath = parentNotePath ? (parentNotePath + '/' + this.note.noteId) : this.note.noteId;const isCurrent = activeNoteParentNoteId === parentNote.noteId;await this.addPath(notePath, isCurrent);