mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-25 22:48:34 -06:00
fix updating becca after undeleting notes
This commit is contained in:
@@ -634,7 +634,10 @@ function undeleteBranch(branchId, deleteId, taskContext) {
|
||||
taskContext.increaseProgressCount();
|
||||
|
||||
if (note.isDeleted && note.deleteId === deleteId) {
|
||||
new Note(note).save();
|
||||
// becca entity was already created as skeleton in "new Branch()" above
|
||||
const noteEntity = becca.getNote(note.noteId);
|
||||
noteEntity.updateFromRow(note);
|
||||
noteEntity.save();
|
||||
|
||||
const attributes = sql.getRows(`
|
||||
SELECT * FROM attributes
|
||||
|
||||
Reference in New Issue
Block a user