mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-09 03:37:45 +03:00
fix: adding default to uris
This commit is contained in:
parent
73a12488cd
commit
76d3fead66
@ -15,10 +15,17 @@ export class RepacksManager {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((repacks) =>
|
.then((repacks) =>
|
||||||
repacks.map((repack) => ({
|
repacks.map((repack) => {
|
||||||
...repack,
|
const uris: string[] = [];
|
||||||
uris: JSON.parse(repack.uris),
|
const magnet = repack?.magnet;
|
||||||
}))
|
|
||||||
|
if (magnet) uris.push(magnet);
|
||||||
|
|
||||||
|
return {
|
||||||
|
...repack,
|
||||||
|
uris: [...uris, ...JSON.parse(repack.uris)],
|
||||||
|
};
|
||||||
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
for (let i = 0; i < this.repacks.length; i++) {
|
for (let i = 0; i < this.repacks.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user