mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	isRoot check
This commit is contained in:
		
							parent
							
								
									839b172b92
								
							
						
					
					
						commit
						e4376bb9f2
					
				| @ -141,7 +141,7 @@ async function processBranchChange(loadResults, ec) { | ||||
|     const childNote = froca.notes[ec.entity.noteId]; | ||||
|     let parentNote = froca.notes[ec.entity.parentNoteId]; | ||||
| 
 | ||||
|     if (childNote && !parentNote) { | ||||
|     if (childNote && !childNote.isRoot() && !parentNote) { | ||||
|         // a branch cannot exist without the parent
 | ||||
|         // a note loaded into froca has to also contain all its ancestors
 | ||||
|         // this problem happened e.g. in sharing where _share was hidden and thus not loaded
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam