diff --git a/src/public/javascripts/entities/note_short.js b/src/public/javascripts/entities/note_short.js index e95bfe697..d0c8cc83b 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} */ 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); }