mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: bug after pause seed
This commit is contained in:
parent
c9be6b6b92
commit
56217fbcf8
3 changed files with 14 additions and 14 deletions
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue