mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix FNote.getContent() #4210
This commit is contained in:
parent
121e4ba2ea
commit
641985737f
@ -120,10 +120,9 @@ class FNote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getContent() {
|
async getContent() {
|
||||||
// we're not caching content since these objects are in froca and as such pretty long-lived
|
const blob = await this.getBlob();
|
||||||
const note = await server.get(`notes/${this.noteId}`);
|
|
||||||
|
|
||||||
return note.content;
|
return blob?.content;
|
||||||
}
|
}
|
||||||
|
|
||||||
async getJsonContent() {
|
async getJsonContent() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user