simplification of tree cache

This commit is contained in:
zadam
2019-10-26 09:51:08 +02:00
parent 22d48b0586
commit ed9ecf2a57
10 changed files with 159 additions and 172 deletions

View File

@@ -250,7 +250,9 @@ async function loadNoteDetail(origNotePath, options = {}) {
async function loadNote(noteId) {
const row = await server.get('notes/' + noteId);
return new NoteFull(treeCache, row);
const noteShort = await treeCache.getNote(noteId);
return new NoteFull(treeCache, row, noteShort);
}
async function filterTabs(noteId) {