Skip to content

Build your personal knowledge base with Trilium Notes

feat(hidden_subtree): update help note icons

Elian Dorana1bfc6aae78a
diff --git a/src/services/hidden_subtree.ts b/src/services/hidden_subtree.ts
index 211ef10525..7d2da744dd 100644
--- a/src/services/hidden_subtree.ts
+++ b/src/services/hidden_subtree.ts
@@ -408,10 +408,13 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree
value: 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();
+ }
}
}