Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Allow removing weak branches even if it's hoisted
dousha9d7f1a2d7156
diff --git a/src/becca/entities/bbranch.ts b/src/becca/entities/bbranch.tsindex 0160ef61b1..018f8f2f7f 100644--- a/src/becca/entities/bbranch.ts+++ b/src/becca/entities/bbranch.ts@@ -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");}