fix ordering of new notes

This commit is contained in:
zadam 2019-10-27 22:39:38 +01:00
parent b7344329f4
commit 23c449ca0c

View File

@ -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);
}