mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	Merge remote-tracking branch 'origin/stable'
This commit is contained in:
		
						commit
						7482ed063b
					
				@ -264,7 +264,7 @@ function isArchived(noteId) {
 | 
				
			|||||||
 * @return {boolean} - true if given noteId has ancestorNoteId in any of its paths (even archived)
 | 
					 * @return {boolean} - true if given noteId has ancestorNoteId in any of its paths (even archived)
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
function isInAncestor(noteId, ancestorNoteId) {
 | 
					function isInAncestor(noteId, ancestorNoteId) {
 | 
				
			||||||
    if (ancestorNoteId === noteId) { // special case
 | 
					    if (ancestorNoteId === 'root' || ancestorNoteId === noteId) {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user