mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
use .markAsDeleted() instead of setting .isDeleted manually
This commit is contained in:
@@ -543,8 +543,7 @@ class Note extends Entity {
|
||||
|
||||
for (const attribute of attributes) {
|
||||
if (attribute.type === type && attribute.name === name && (value === undefined || value === attribute.value)) {
|
||||
attribute.isDeleted = true;
|
||||
attribute.save();
|
||||
attribute.markAsDeleted();
|
||||
|
||||
this.invalidateAttributeCache();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user