Skip to content

Build your personal knowledge base with Trilium Notes

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.ts
index 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: b
return $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();