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
Update battachment.ts to fix bug that prevents loading library items
CobriMediaJuliend9d3613caf06
diff --git a/src/becca/entities/battachment.ts b/src/becca/entities/battachment.tsindex ab90d345f2..c8871a5841 100644--- a/src/becca/entities/battachment.ts+++ b/src/becca/entities/battachment.ts@@ -98,7 +98,7 @@ class BAttachment extends AbstractBeccaEntity<BAttachment> {/** @returns true if the note has string content (not binary) */hasStringContent(): boolean {- return this.type !== undefined && utils.isStringNote(this.type, this.mime);+ return this.type utils.isStringNote(this.type, this.mime); // here was !== undefined && utils.isStringNote(this.type, this.mime); I dont know why we need !=undefined. But it filters out canvas libary items}isContentAvailable() {