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,10 +408,13 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree
value: attr.value, value: attr.value,
isInheritable: false isInheritable: false
}).save(); }).save();
} else if (attr.name === "docName") { } else if (attr.name === "docName"
// Updating docname || (existingAttribute.noteId.startsWith("_help") && attr.name === "iconClass")) {
existingAttribute.value = attr.value ?? ""; if (existingAttribute.value !== attr.value) {
existingAttribute.save(); existingAttribute.value = attr.value ?? "";
console.log("Updating attribute ", attrId);
existingAttribute.save();
}
} }
} }