Skip to content

Build your personal knowledge base with Trilium Notes

fix showing deleted notes in "recent changes" dialog, closes #994

zadam70e343f2fce3
diff --git a/src/services/note_cache.js b/src/services/note_cache.js
index b2efcc2e94..0012d25451 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;
}