Fix selecting migration manual search match

This commit is contained in:
schroda
2026-05-18 21:36:56 +02:00
parent bfbb84ac21
commit 993601dbfb

View File

@@ -628,7 +628,15 @@ export class MigrationManager {
MigrationEntryStatus.SEARCH_COMPLETE,
].includes(entry.status);
MigrationManager.selectMatch(mangaId, match.id, match.sourceId, true);
if (isSearching) {
draft.searchProgress.completed += 1;
draft.searchProgress.success += 1;
entry.status = MigrationEntryStatus.SEARCH_COMPLETE;
}
entry.isManualSelection = true;
entry.selectedMatchMangaId = match.id;
entry.selectedMatchSourceId = match.sourceId;
if (isSearching) {
MigrationManager.searchAbortControllerByManga.get(mangaId)?.abort('Manual match selected');