Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
return null for not found attribute, closes #1294
zadam140f0a5dbd3b
diff --git a/docs/frontend_api/entities_note_short.js.html b/docs/frontend_api/entities_note_short.js.htmlindex 71979c12e9..50a6ef5311 100644--- a/docs/frontend_api/entities_note_short.js.html+++ b/docs/frontend_api/entities_note_short.js.html@@ -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;}/**diff --git a/src/public/app/entities/note_short.js b/src/public/app/entities/note_short.jsindex a3e23112da..f55c175b94 100644--- a/src/public/app/entities/note_short.js+++ b/src/public/app/entities/note_short.js@@ -307,7 +307,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;}/**