mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
small refactorings
This commit is contained in:
@@ -89,7 +89,7 @@ class SAttribute extends AbstractShacaEntity {
|
||||
/** @returns {SNote|null} */
|
||||
getTargetNote() {
|
||||
if (this.type !== 'relation') {
|
||||
throw new Error(`Attribute ${this.attributeId} is not relation`);
|
||||
throw new Error(`Attribute '${this.attributeId}' is not relation`);
|
||||
}
|
||||
|
||||
if (!this.value) {
|
||||
|
||||
Reference in New Issue
Block a user