mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 23:35:50 +01:00
attachments WIP
This commit is contained in:
@@ -231,8 +231,7 @@ class FNote {
|
||||
/** @returns {Promise<FAttachment[]>} */
|
||||
async getAttachments() {
|
||||
if (!this.attachments) {
|
||||
this.attachments = (await server.get(`notes/${this.noteId}/attachments`))
|
||||
.map(row => new FAttachment(froca, row));
|
||||
this.attachments = await this.froca.getAttachmentsForNote(this.noteId);
|
||||
}
|
||||
|
||||
return this.attachments;
|
||||
|
||||
Reference in New Issue
Block a user