From e4376bb9f202d7a82c6018264d44dbb65224fb08 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 14 Apr 2023 20:24:28 +0200 Subject: [PATCH] isRoot check --- src/public/app/services/froca_updater.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/app/services/froca_updater.js b/src/public/app/services/froca_updater.js index 070d6c2a2..76662b08a 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