Skip to content

Build your personal knowledge base with Trilium Notes

fix bug causing non-working autocomplete after creating new note

azivner4596d56ae884
diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js
index 631322240d..393202a3f2 100644
--- a/public/javascripts/note_tree.js
+++ b/public/javascripts/note_tree.js
@@ -614,6 +614,8 @@ const noteTree = (function() {
setParentChildRelation(result.note_tree_id, parentNoteId, result.note_id);
+ notesTreeMap[result.note_tree_id] = result;
+
noteIdToTitle[result.note_id] = newNoteName;
noteEditor.newNoteCreated();