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(hidden_subtree): update help note icons
Elian Dorana1bfc6aae78a
diff --git a/src/services/hidden_subtree.ts b/src/services/hidden_subtree.tsindex 211ef10525..7d2da744dd 100644--- a/src/services/hidden_subtree.ts+++ b/src/services/hidden_subtree.ts@@ -408,10 +408,13 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtreevalue: attr.value,isInheritable: false}).save();- } else if (attr.name === "docName") {- // Updating docname- existingAttribute.value = attr.value ?? "";- existingAttribute.save();+ } else if (attr.name === "docName"+ || (existingAttribute.noteId.startsWith("_help") && attr.name === "iconClass")) {+ if (existingAttribute.value !== attr.value) {+ existingAttribute.value = attr.value ?? "";+ console.log("Updating attribute ", attrId);+ existingAttribute.save();+ }}}