mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix for clones & optimizations
This commit is contained in:
		| @@ -36,20 +36,20 @@ class NoteShort { | ||||
|         return await this.treeCache.getBranches(branchIds); | ||||
|     } | ||||
|  | ||||
|     async __getNotes(noteIds) { | ||||
|         if (!noteIds) { | ||||
|             return []; | ||||
|         } | ||||
|  | ||||
|         return this.treeCache.getNotes(noteIds); | ||||
|     getParentNoteIds() { | ||||
|         return this.treeCache.parents[this.noteId] || []; | ||||
|     } | ||||
|  | ||||
|     async getParentNotes() { | ||||
|         return this.__getNotes(this.treeCache.parents[this.noteId]); | ||||
|         return await this.treeCache.getNotes(this.getParentNoteIds()); | ||||
|     } | ||||
|  | ||||
|     getChildNoteIds() { | ||||
|         return this.treeCache.children[this.noteId] || []; | ||||
|     } | ||||
|  | ||||
|     async getChildNotes() { | ||||
|         return this.__getNotes(this.treeCache.children[this.noteId]); | ||||
|         return await this.treeCache.getNotes(this.getChildNoteIds()); | ||||
|     } | ||||
|  | ||||
|     get toString() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user