Merge remote-tracking branch 'origin/stable'

pull/255/head
zadam 2020-04-29 23:27:39 +07:00
commit 7482ed063b
1 changed files with 1 additions and 1 deletions

@ -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;
}