From 70e343f2fce3e573fe66d31bb04e7e6dabbe6e36 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 29 Apr 2020 23:25:34 +0200 Subject: [PATCH] fix showing deleted notes in "recent changes" dialog, closes #994 --- src/services/note_cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/note_cache.js b/src/services/note_cache.js index b2efcc2e9..0012d2545 100644 --- a/src/services/note_cache.js +++ b/src/services/note_cache.js @@ -264,7 +264,7 @@ function isArchived(noteId) { * @return {boolean} - true if given noteId has ancestorNoteId in any of its paths (even archived) */ function isInAncestor(noteId, ancestorNoteId) { - if (ancestorNoteId === noteId) { // special case + if (ancestorNoteId === 'root' || ancestorNoteId === noteId) { return true; }