diff --git a/src/routes/api/note_revisions.js b/src/routes/api/note_revisions.js index 0d390328c..be301e621 100644 --- a/src/routes/api/note_revisions.js +++ b/src/routes/api/note_revisions.js @@ -129,7 +129,7 @@ function getEditedNotesOnDate(req) { // Narrow down the results if a note is hoisted, similar to "Jump to note". const hoistedNoteId = cls.getHoistedNoteId(); - if (hoistedNoteId) { + if (hoistedNoteId !== 'root') { notes = notes.filter(note => note.hasAncestor(hoistedNoteId)); }