various becca migration fixes

This commit is contained in:
zadam
2021-05-11 22:00:16 +02:00
parent 5d58520949
commit 8417d4a4ea
9 changed files with 336 additions and 309 deletions

View File

@@ -187,7 +187,7 @@ class Froca {
}
const branches = [...note.getBranches(), ...note.getChildBranches()];
console.log("searchResultNoteIds", searchResultNoteIds);
searchResultNoteIds.forEach((resultNoteId, index) => branches.push({
// branchId should be repeatable since sometimes we reload some notes without rerendering the tree
branchId: "virt-" + note.noteId + '-' + resultNoteId,
@@ -197,6 +197,8 @@ class Froca {
fromSearchNote: true
}));
console.log("branches", branches);
// update this note with standard (parent) branches + virtual (children) branches
this.addResp({
notes: [note],