Merge remote-tracking branch 'origin/stable'

This commit is contained in:
zadam
2020-07-26 22:58:54 +02:00
3 changed files with 33 additions and 4 deletions

View File

@@ -273,6 +273,12 @@ class TreeCache {
async getBranchId(parentNoteId, childNoteId) {
const child = await this.getNote(childNoteId);
if (!child) {
console.error(`Could not find branchId for parent=${parentNoteId}, child=${childNoteId} since child does not exist`);
return null;
}
return child.parentToBranch[parentNoteId];
}