improvements in frontend sync (WIP)

This commit is contained in:
zadam
2021-08-24 22:59:51 +02:00
parent d27fcaf317
commit 66374bf95f
9 changed files with 29 additions and 12 deletions

View File

@@ -1031,9 +1031,10 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
if (!found) {
// make sure it's loaded
await froca.getNote(branch.noteId);
const frocaBranch = froca.getBranch(branch.branchId);
// we're forcing lazy since it's not clear if the whole required subtree is in froca
parentNode.addChildren([this.prepareNode(branch, true)]);
// we're forcing lazy since it's not clear if the whole required subtree is in froca
parentNode.addChildren([this.prepareNode(frocaBranch, true)]);
this.sortChildren(parentNode);