diff --git a/src/services/search/note_set.js b/src/services/search/note_set.js index 116c8eae2..82c236cf6 100644 --- a/src/services/search/note_set.js +++ b/src/services/search/note_set.js @@ -31,12 +31,7 @@ class NoteSet { } mergeIn(anotherNoteSet) { - for (const note of anotherNoteSet.notes) { - if (!this.noteIdSet.has(note.noteId)) { - this.noteIdSet.add(note.noteId); - this.notes.push(note); - } - } + this.addAll(anotherNoteSet.notes); } minus(anotherNoteSet) {