fix relation map

This commit is contained in:
zadam
2021-06-03 12:32:48 +02:00
parent 855b876d50
commit 9216e430db
2 changed files with 11 additions and 1 deletions

View File

@@ -674,6 +674,16 @@ class Note extends AbstractEntity {
}
}
getRelationDefinitions() {
return this.getLabels()
.filter(l => l.name.startsWith("relation:"));
}
getLabelDefinitions() {
return this.getLabels()
.filter(l => l.name.startsWith("relation:"));
}
isTemplate() {
return !!this.targetRelations.find(rel => rel.name === 'template');
}