mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
use .markAsDeleted() instead of setting .isDeleted manually
This commit is contained in:
@@ -196,14 +196,13 @@ function setNoteToParent(noteId, prefix, parentNoteId) {
|
||||
|
||||
if (branch) {
|
||||
if (!parentNoteId) {
|
||||
branch.isDeleted = true;
|
||||
branch.markAsDeleted();
|
||||
}
|
||||
else {
|
||||
branch.parentNoteId = parentNoteId;
|
||||
branch.prefix = prefix;
|
||||
branch.save();
|
||||
}
|
||||
|
||||
branch.save();
|
||||
}
|
||||
else if (parentNoteId) {
|
||||
const note = becca.getNote(noteId);
|
||||
|
||||
Reference in New Issue
Block a user