mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +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[]>} */
 | 
			
		||||
    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);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user