Skip to content

Build your personal knowledge base with Trilium Notes

chore(core): fix minor type issue

Elian Doran321558a01f4a
diff --git a/packages/trilium-core/src/becca/entities/bnote.ts b/packages/trilium-core/src/becca/entities/bnote.ts
index 20d7dd970b..e59be195c5 100644
--- a/packages/trilium-core/src/becca/entities/bnote.ts
+++ b/packages/trilium-core/src/becca/entities/bnote.ts
@@ -1515,7 +1515,7 @@ class BNote extends AbstractBeccaEntity<BNote> {
taskContext.noteDeletionHandlerTriggered = true;
for (const branch of this.getParentBranches()) {
- branch.deleteBranch(deleteId, taskContext);
+ branch.deleteBranch(deleteId ?? undefined, taskContext);
}
}