Prevent duplicated matches in bulk migration
This commit is contained in:
@@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
- (**Migration**) Fix retry button never being shown for failed search/migration entries
|
||||
- (**Migration**) Fix showing an empty "Available" source group header when all sources are selected
|
||||
- (**Migration**) Fix showing no info message when no sources are available to select as destinations
|
||||
- (**Migration**) Fix duplicated search matches after resuming the migration search
|
||||
- (**Reader**) Fix scrollbar appearing with "fit to widt/height/screen" page scale mode and applied safe area insets
|
||||
- (**Reader**) Fix wrongly positioned mobile progress bar current page indicator
|
||||
- (**Reader**) Fix mobile progress bar previous/next chapter button visibility on hover and while disabled
|
||||
|
||||
@@ -852,7 +852,10 @@ export class MigrationManager {
|
||||
? draft.entries[draftEntry.selectedMatchMangaId]
|
||||
: null;
|
||||
|
||||
const matches = foundMatches.map((manga) => ({
|
||||
const newMatches = foundMatches.filter((newMatch) =>
|
||||
draftEntry.searchMatches.every((existingMatch) => newMatch.id !== existingMatch.id),
|
||||
);
|
||||
const matches = newMatches.map((manga) => ({
|
||||
id: manga.id,
|
||||
title: manga.title,
|
||||
artist: manga.artist,
|
||||
|
||||
Reference in New Issue
Block a user