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 utils.ts to fix backend bug that prevented library items from loading
CobriMediaJuliene64e51c0783f
diff --git a/src/services/utils.ts b/src/services/utils.tsindex 1d93d724cc..1c7a7e12ba 100644--- a/src/services/utils.ts+++ b/src/services/utils.ts@@ -160,7 +160,7 @@ const STRING_MIME_TYPES = ["image/svg+xml"];-function isStringNote(type: string | null, mime: string) {+function isStringNote(type: string | undefined, mime: string) {// render and book are string note in the sense that they are expected to contain empty stringreturn (type && ["text", "code", "relationMap", "search", "render", "book", "mermaid", "canvas"].includes(type))|| mime.startsWith('text/')