mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
delete attributes when deleting note
This commit is contained in:
@@ -250,6 +250,11 @@ async function deleteNote(branch) {
|
||||
for (const childBranch of await note.getChildBranches()) {
|
||||
await deleteNote(childBranch);
|
||||
}
|
||||
|
||||
for (const attribute of await note.getOwnedAttributes()) {
|
||||
attribute.isDeleted = true;
|
||||
await attribute.save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user