Skip to content

Build your personal knowledge base with Trilium Notes

isRoot check

zadame4376bb9f202
diff --git a/src/public/app/services/froca_updater.js b/src/public/app/services/froca_updater.js
index 070d6c2a25..76662b08a5 100644
--- a/src/public/app/services/froca_updater.js
+++ b/src/public/app/services/froca_updater.js
@@ -141,7 +141,7 @@ async function processBranchChange(loadResults, ec) {
const childNote = froca.notes[ec.entity.noteId];
let parentNote = froca.notes[ec.entity.parentNoteId];
- if (childNote && !parentNote) {
+ if (childNote && !childNote.isRoot() && !parentNote) {
// a branch cannot exist without the parent
// a note loaded into froca has to also contain all its ancestors
// this problem happened e.g. in sharing where _share was hidden and thus not loaded