Skip to content

Build your personal knowledge base with Trilium Notes

fix activating parent note after delete

zadam2a9f36a0279f
diff --git a/src/public/javascripts/services/branches.js b/src/public/javascripts/services/branches.js
index aa4fdffa09..fc2983f9d4 100644
--- a/src/public/javascripts/services/branches.js
+++ b/src/public/javascripts/services/branches.js
@@ -102,7 +102,7 @@ async function deleteNodes(nodes) {
next = nodes[0].getPrevSibling();
}
- if (!next && !hoistedNoteService.isTopLevelNode(nodes[0])) {
+ if (!next && !await hoistedNoteService.isTopLevelNode(nodes[0])) {
next = nodes[0].getParent();
}