Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
cleaup
baiyongjie9d49264258dd
diff --git a/src/routes/api/note_revisions.js b/src/routes/api/note_revisions.jsindex e3e8bbf88f..53eff71652 100644--- a/src/routes/api/note_revisions.js+++ b/src/routes/api/note_revisions.js@@ -132,17 +132,15 @@ function getEditedNotesOnDate(req) {notes = notes.filter(note => note.hasAncestor(hoistedNoteId));}- const notePojos = notes.map(note => note.getPojo());-- notes.forEach((note, index) => {+ return notes.map(note => {const notePath = note.isDeleted ? null : getNotePathData(note);- notePojos[index].notePath = notePath ? notePath.notePath : null;- });-+ const notePojo = note.getPojo();+ notePojo.notePath = notePath ? notePath.notePath : null;+ return notePojo;+ });- return notePojos;}function getNotePathData(note) {