mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
fix extracting base64 inline images from HTML, fixes #1159
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user