fix: bug after pause seed

This commit is contained in:
Zamitto
2024-12-23 09:38:50 -03:00
parent c9be6b6b92
commit 56217fbcf8
3 changed files with 14 additions and 14 deletions

View File

@@ -77,13 +77,12 @@ export function DownloadGroup({
};
const seedingMap = useMemo(() => {
if (!Array.isArray(seedingStatus) || seedingStatus.length === 0) {
return new Map<number, SeedingStatus>();
}
const map = new Map<number, SeedingStatus>();
seedingStatus.forEach((seed) => {
map.set(seed.gameId, seed);
});
return map;
}, [seedingStatus]);