mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 08:43:57 +00:00
fix: bug after pause seed
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user