mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-13 08:20:34 +00:00
Handle deluge with 0 torrents
This commit is contained in:
parent
bec62a0949
commit
165add7f53
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export default function Component({ service }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const { torrents } = torrentData;
|
const { torrents } = torrentData;
|
||||||
const keys = Object.keys(torrents);
|
const keys = torrents ? Object.keys(torrents) : [];
|
||||||
|
|
||||||
let rateDl = 0;
|
let rateDl = 0;
|
||||||
let rateUl = 0;
|
let rateUl = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue