mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
reimplemented expand/collapse differently for better performance
This commit is contained in:
@@ -246,10 +246,10 @@ class TreeCache {
|
||||
return this.notes[noteId];
|
||||
}
|
||||
|
||||
getBranches(branchIds) {
|
||||
getBranches(branchIds, silentNotFoundError = false) {
|
||||
return branchIds
|
||||
.map(branchId => this.getBranch(branchId))
|
||||
.filter(b => b !== null);
|
||||
.map(branchId => this.getBranch(branchId, silentNotFoundError))
|
||||
.filter(b => !!b);
|
||||
}
|
||||
|
||||
/** @return {Branch} */
|
||||
|
||||
Reference in New Issue
Block a user