Skip to content

Build your personal knowledge base with Trilium Notes

refactor

zadam4660c154e9ef
diff --git a/src/services/search/note_set.js b/src/services/search/note_set.js
index 116c8eae29..82c236cf67 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) {