Skip to content

Build your personal knowledge base with Trilium Notes

Merge remote-tracking branch 'origin/stable'

zadam8e2bf7795c92
diff --cc src/routes/api/attributes.js
index ca1c98230c,98360a36c7..ffbd6696b2
--- a/src/routes/api/attributes.js
+++ b/src/routes/api/attributes.js
@@@ -52,8 -54,9 +54,9 @@@ function updateNoteAttribute(req)
attribute.type = body.type;
}
- if (body.type !== 'relation' || body.value.trim()) {
+ if (attribute.type === 'label' || body.value.trim()) {
attribute.value = body.value;
+ attribute.isDeleted = false;
}
else {
// relations should never have empty target