added "inherit" relation, #3493

This commit is contained in:
zadam
2023-01-06 20:31:55 +01:00
parent a863da1dce
commit 8a641e1b4f
21 changed files with 49 additions and 41 deletions

View File

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