note complement is now loaded through tree cache

This commit is contained in:
zadam
2020-02-01 18:29:18 +01:00
parent f0cbca2838
commit 0e13678f7c
8 changed files with 22 additions and 44 deletions

View File

@@ -85,11 +85,7 @@ class TabContext extends Component {
return null;
}
if (!this.noteComplementPromise) {
this.noteComplementPromise = noteDetailService.loadNoteComplement(this.noteId);
}
return await this.noteComplementPromise;
return await treeCache.getNoteComplement(this.noteId);
}
async remove() {