feat(hidden_subtree): update help note icons

This commit is contained in:
Elian Doran 2025-02-22 12:31:39 +02:00
parent 97bc103e76
commit a1bfc6aae7
No known key found for this signature in database

View File

@ -408,12 +408,15 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree
value: attr.value,
isInheritable: false
}).save();
} else if (attr.name === "docName") {
// Updating docname
} 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();
}
}
}
for (const child of item.children || []) {
checkHiddenSubtreeRecursively(item.id, child, extraOpts);