mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
branches in tree cache should always be loaded if some branchId reference exists
This commit is contained in:
@@ -11,7 +11,7 @@ async function prepareTree() {
|
||||
let hoistedBranch;
|
||||
|
||||
if (hoistedNoteId === 'root') {
|
||||
hoistedBranch = await treeCache.getBranch('root');
|
||||
hoistedBranch = treeCache.getBranch('root');
|
||||
}
|
||||
else {
|
||||
const hoistedNote = await treeCache.getNote(hoistedNoteId);
|
||||
@@ -116,7 +116,7 @@ async function prepareSearchBranch(note) {
|
||||
await treeCache.getNotes(results.map(res => res.noteId));
|
||||
|
||||
for (const result of results) {
|
||||
const origBranch = await treeCache.getBranch(result.branchId);
|
||||
const origBranch = treeCache.getBranch(result.branchId);
|
||||
|
||||
const branch = new Branch(treeCache, {
|
||||
branchId: "virt" + utils.randomString(10),
|
||||
|
||||
Reference in New Issue
Block a user