This commit is contained in:
wea_ondara
2023-11-22 17:00:10 +01:00
parent df705e5e20
commit eaf31fc9fd
2 changed files with 2 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ export default class MangaUpdatesDataService {
const chapter = parseInt(match[1]);
return r.groups.map(g => ({series_id: s.series_id, group: g.name, chapter: chapter} as MangaUpdatesChapter));
})
.flat();
.flat() as MangaUpdatesChapter[];
//only keep chapter with the highest chapter number per group
const filtered = Array.from(groupBy(updates, c => c.group).values())