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
fix removeAttribute to take into account attribute name, closes #804
zadamd0c655f66a32
diff --git a/src/entities/note.js b/src/entities/note.jsindex 20ce506b22..6eb87c5b25 100644--- a/src/entities/note.js+++ b/src/entities/note.js@@ -525,7 +525,7 @@ class Note extends Entity {const attributes = await this.loadOwnedAttributesToCache();for (const attribute of attributes) {- if (attribute.type === type && (value === undefined || value === attribute.value)) {+ if (attribute.type === type && attribute.name === name && (value === undefined || value === attribute.value)) {attribute.isDeleted = true;await attribute.save();