mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	Allow removing weak branches even if it's hoisted
This commit is contained in:
		
							parent
							
								
									70d6d375f9
								
							
						
					
					
						commit
						9d7f1a2d71
					
				@ -159,7 +159,7 @@ class BBranch extends AbstractBeccaEntity<BBranch> {
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (this.noteId === "root" || this.noteId === cls.getHoistedNoteId()) {
 | 
			
		||||
        if ((this.noteId === "root" || this.noteId === cls.getHoistedNoteId()) && !this.isWeak) {
 | 
			
		||||
            throw new Error("Can't delete root or hoisted branch/note");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user