mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
import & export fixed
This commit is contained in:
@@ -193,6 +193,12 @@ class TreeCache {
|
||||
return this.branches[branchId];
|
||||
}
|
||||
}
|
||||
|
||||
async getBranchId(parentNoteId, childNoteId) {
|
||||
const child = await this.getNote(childNoteId);
|
||||
|
||||
return child.parentToBranch[parentNoteId];
|
||||
}
|
||||
}
|
||||
|
||||
const treeCache = new TreeCache();
|
||||
|
||||
Reference in New Issue
Block a user