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
fix FNote.getContent() #4210
zadam641985737fa2
diff --git a/src/public/app/entities/fnote.js b/src/public/app/entities/fnote.jsindex 848243fd62..134bac0df1 100644--- a/src/public/app/entities/fnote.js+++ b/src/public/app/entities/fnote.js@@ -120,10 +120,9 @@ class FNote {}async getContent() {- // we're not caching content since these objects are in froca and as such pretty long-lived- const note = await server.get(`notes/${this.noteId}`);+ const blob = await this.getBlob();- return note.content;+ return blob?.content;}async getJsonContent() {