various small fixes

This commit is contained in:
zadam
2019-09-08 11:25:57 +02:00
parent 90afb2a1ee
commit f3955bcbdc
8 changed files with 17 additions and 16 deletions

View File

@@ -21,12 +21,12 @@ class SimilarNotesWidget extends StandardWidget {
const noteIds = similarNotes.flatMap(note => note.notePath);
await treeCache.getNotes(noteIds); // preload all at once
await treeCache.getNotes(noteIds, true); // preload all at once
const $list = $('<ul>');
for (const similarNote of similarNotes) {
const note = await treeCache.getNote(similarNote.noteId);
const note = await treeCache.getNote(similarNote.noteId, true);
if (!note) {
continue;