This commit is contained in:
zadam 2023-10-24 23:10:52 +02:00
parent bacae67374
commit 4660c154e9

View file

@ -31,12 +31,7 @@ class NoteSet {
} }
mergeIn(anotherNoteSet) { mergeIn(anotherNoteSet) {
for (const note of anotherNoteSet.notes) { this.addAll(anotherNoteSet.notes);
if (!this.noteIdSet.has(note.noteId)) {
this.noteIdSet.add(note.noteId);
this.notes.push(note);
}
}
} }
minus(anotherNoteSet) { minus(anotherNoteSet) {