fix extracting base64 inline images from HTML, fixes #1159

This commit is contained in:
zadam
2020-07-26 22:58:22 +02:00
parent 3d324b954d
commit 099e90ed64
2 changed files with 27 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];
}