mirror of
https://github.com/zadam/trilium.git
synced 2024-09-21 16:16:04 +08:00
fix showing deleted notes in "recent changes" dialog, closes #994
This commit is contained in:
parent
94b57dadd7
commit
70e343f2fc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue