Skip to content

Build your personal knowledge base with Trilium Notes

fix "edited notes on a day" for deleted notes

zadam9359f053355c
diff --git a/src/routes/api/note_revisions.js b/src/routes/api/note_revisions.js
index 59af1825fc..cdbf36d706 100644
--- a/src/routes/api/note_revisions.js
+++ b/src/routes/api/note_revisions.js
@@ -138,7 +138,7 @@ function getEditedNotesOnDate(req) {
LIMIT 50`, {date: req.params.date + '%'});
for (const note of notes) {
- const notePath = noteCacheService.getNotePath(note.noteId);
+ const notePath = note.isDeleted ? null : noteCacheService.getNotePath(note.noteId);
note.notePath = notePath ? notePath.notePath : null;
}