mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix ordering of new notes
This commit is contained in:
parent
b7344329f4
commit
23c449ca0c
@ -127,7 +127,8 @@ class NoteShort {
|
|||||||
|
|
||||||
/** @returns {Promise<Branch[]>} */
|
/** @returns {Promise<Branch[]>} */
|
||||||
async getChildBranches() {
|
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);
|
return this.treeCache.getBranches(branchIds);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user