branches in tree cache should always be loaded if some branchId reference exists

This commit is contained in:
zadam
2019-10-26 09:58:00 +02:00
parent ed9ecf2a57
commit d3c957768f
10 changed files with 25 additions and 43 deletions

View File

@@ -62,7 +62,7 @@ async function getNoteTitle(noteId, parentNoteId = null) {
const branchId = note.parentToBranch[parentNoteId];
if (branchId) {
const branch = await treeCache.getBranch(branchId);
const branch = treeCache.getBranch(branchId);
if (branch && branch.prefix) {
title = branch.prefix + ' - ' + title;