note cache fixes, #1805

This commit is contained in:
zadam
2021-03-30 21:39:42 +02:00
parent e055d4e15e
commit da741b522e
4 changed files with 16 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ function getNotesAndBranchesAndAttributes(noteIds) {
for (const attr of note.ownedAttributes) {
collectedAttributeIds.add(attr.attributeId);
if (attr.type === 'relation' && attr.name === 'template') {
if (attr.type === 'relation' && attr.name === 'template' && attr.targetNote) {
collectEntityIds(attr.targetNote);
}
}