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(web_view): hide attribute from attribute preview
Elian Dorana1ac276be5de
diff --git a/apps/client/src/services/attribute_renderer.ts b/apps/client/src/services/attribute_renderer.tsindex bbe278056e..9432eebc61 100644--- a/apps/client/src/services/attribute_renderer.ts+++ b/apps/client/src/services/attribute_renderer.ts@@ -79,7 +79,19 @@ async function renderAttributes(attributes: FAttribute[], renderIsInheritable: breturn $container;}-const HIDDEN_ATTRIBUTES = ["originalFileName", "fileSize", "template", "inherit", "cssClass", "iconClass", "pageSize", "viewType", "geolocation", "docName"];+const HIDDEN_ATTRIBUTES = [+ "originalFileName",+ "fileSize",+ "template",+ "inherit",+ "cssClass",+ "iconClass",+ "pageSize",+ "viewType",+ "geolocation",+ "docName",+ "webViewSrc"+];async function renderNormalAttributes(note: FNote) {const promotedDefinitionAttributes = note.getPromotedDefinitionAttributes();