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
fix ordering of new notes
zadam23c449ca0cdb
diff --git a/src/public/javascripts/entities/note_short.js b/src/public/javascripts/entities/note_short.jsindex e95bfe697d..d0c8cc83b0 100644--- a/src/public/javascripts/entities/note_short.js+++ b/src/public/javascripts/entities/note_short.js@@ -127,7 +127,8 @@ class NoteShort {/** @returns {Promise<Branch[]>} */async getChildBranches() {- const branchIds = Object.values(this.childToBranch);+ // don't use Object.values() to guarantee order+ const branchIds = this.children.map(childNoteId => this.childToBranch[childNoteId]);return this.treeCache.getBranches(branchIds);}