mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
small sync fixes
This commit is contained in:
@@ -133,7 +133,7 @@ class TreeCache {
|
||||
|
||||
/** @return {Promise<NoteShort[]>} */
|
||||
async getNotes(noteIds, silentNotFoundError = false) {
|
||||
const missingNoteIds = noteIds.filter(noteId => this.notes[noteId] === undefined);
|
||||
const missingNoteIds = noteIds.filter(noteId => !this.notes[noteId]);
|
||||
|
||||
if (missingNoteIds.length > 0) {
|
||||
await this.reloadNotes(missingNoteIds);
|
||||
|
||||
Reference in New Issue
Block a user