Skip to content

Build your personal knowledge base with Trilium Notes

Update sattachment.ts -> Fix backend bug that prevented library items from loading

CobriMediaJulien3ed9f4e05640
diff --git a/src/share/shaca/entities/sattachment.ts b/src/share/shaca/entities/sattachment.ts
index dc0ad7953d..a442c42657 100644
--- a/src/share/shaca/entities/sattachment.ts
+++ b/src/share/shaca/entities/sattachment.ts
@@ -62,7 +62,7 @@ class SAttachment extends AbstractShacaEntity {
/** @returns true if the attachment has string content (not binary) */
hasStringContent() {
- return utils.isStringNote(null, this.mime);
+ return utils.isStringNote(undefined, this.mime);
}
getPojo() {