mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 16:26:31 +01:00
return null for not found attribute, closes #1294
This commit is contained in:
@@ -335,7 +335,7 @@ class NoteShort {
|
||||
getAttribute(type, name) {
|
||||
const attributes = this.getAttributes(type, name);
|
||||
|
||||
return attributes.length > 0 ? attributes[0] : 0;
|
||||
return attributes.length > 0 ? attributes[0] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user