mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-08 05:09:13 -05:00
Allow removing weak branches even if it's hoisted
This commit is contained in:
@@ -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");
|
throw new Error("Can't delete root or hoisted branch/note");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user