Prevent duplicated matches in bulk migration

This commit is contained in:
schroda
2026-05-16 22:03:42 +02:00
parent a15cd20031
commit e673485d8a
2 changed files with 5 additions and 1 deletions

View File

@@ -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 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 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 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 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 wrongly positioned mobile progress bar current page indicator
- (**Reader**) Fix mobile progress bar previous/next chapter button visibility on hover and while disabled - (**Reader**) Fix mobile progress bar previous/next chapter button visibility on hover and while disabled

View File

@@ -852,7 +852,10 @@ export class MigrationManager {
? draft.entries[draftEntry.selectedMatchMangaId] ? draft.entries[draftEntry.selectedMatchMangaId]
: null; : 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, id: manga.id,
title: manga.title, title: manga.title,
artist: manga.artist, artist: manga.artist,