mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 05:23:39 +01:00
Handle deluge with 0 torrents
This commit is contained in:
parent
bec62a0949
commit
165add7f53
@ -27,7 +27,7 @@ export default function Component({ service }) {
|
||||
}
|
||||
|
||||
const { torrents } = torrentData;
|
||||
const keys = Object.keys(torrents);
|
||||
const keys = torrents ? Object.keys(torrents) : [];
|
||||
|
||||
let rateDl = 0;
|
||||
let rateUl = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user