mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
use .markAsDeleted() instead of setting .isDeleted manually
This commit is contained in:
@@ -24,7 +24,7 @@ const TPL = `
|
||||
|
||||
More complex example would be deleting all matched note's attributes:
|
||||
|
||||
<pre>for (const attr of note.getOwnedAttributes) { attr.isDeleted = true; attr.save(); }</pre>
|
||||
<pre>for (const attr of note.getOwnedAttributes) { attr.markAsDeleted(); }</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user