mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
fix relation saving
This commit is contained in:
@@ -95,7 +95,7 @@ async function updateNoteAttributes(req) {
|
|||||||
attributeEntity.isInheritable = attribute.isInheritable;
|
attributeEntity.isInheritable = attribute.isInheritable;
|
||||||
attributeEntity.isDeleted = attribute.isDeleted;
|
attributeEntity.isDeleted = attribute.isDeleted;
|
||||||
|
|
||||||
if (attributeEntity.type === 'relation' && !attributeEntity.value.trim()) {
|
if (attributeEntity.type === 'relation' && !attribute.value.trim()) {
|
||||||
// relation should never have empty target
|
// relation should never have empty target
|
||||||
attributeEntity.isDeleted = true;
|
attributeEntity.isDeleted = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user