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
zadama36022d8c171
diff --git a/src/public/app/services/note_create.js b/src/public/app/services/note_create.jsindex d6e5e44759..a57e5c69f3 100644--- a/src/public/app/services/note_create.js+++ b/src/public/app/services/note_create.js@@ -49,6 +49,8 @@ async function createNote(parentNoteId, options = {}) {window.cutToNote.removeSelection();}+ await ws.waitForMaxKnownSyncId();+if (options.activate) {const activeTabContext = appContext.tabManager.getActiveTabContext();await activeTabContext.setNote(note.noteId);@@ -62,7 +64,7 @@ async function createNote(parentNoteId, options = {}) {}const noteEntity = await treeCache.getNote(note.noteId);- const branchEntity = treeCache.getBranchId(branch.branchId);+ const branchEntity = treeCache.getBranch(branch.branchId);return {note: noteEntity,diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.jsindex 89d2239efe..7c0ebd3df7 100644--- a/src/public/app/widgets/type_widgets/editable_text.js+++ b/src/public/app/widgets/type_widgets/editable_text.js@@ -126,9 +126,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {const noteComplement = await treeCache.getNoteComplement(note.noteId);await this.spacedUpdate.allowUpdateWithoutChange(() => {- if (noteComplement.content) {- this.textEditor.setData(noteComplement.content);- }+ this.textEditor.setData(noteComplement.content || "");});}