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
feat(in-app-help): hide #docName from note preview
Elian Doranf12aed9ac0ee
diff --git a/src/public/app/services/attribute_renderer.ts b/src/public/app/services/attribute_renderer.tsindex f09ecf8f90..caecf16024 100644--- a/src/public/app/services/attribute_renderer.ts+++ b/src/public/app/services/attribute_renderer.ts@@ -79,7 +79,7 @@ async function renderAttributes(attributes: FAttribute[], renderIsInheritable: breturn $container;}-const HIDDEN_ATTRIBUTES = ["originalFileName", "fileSize", "template", "inherit", "cssClass", "iconClass", "pageSize", "viewType", "geolocation"];+const HIDDEN_ATTRIBUTES = [ "originalFileName", "fileSize", "template", "inherit", "cssClass", "iconClass", "pageSize", "viewType", "geolocation", "docName" ];async function renderNormalAttributes(note: FNote) {const promotedDefinitionAttributes = note.getPromotedDefinitionAttributes();