mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-08 08:14:57 +01:00
Fix error on refresh sending DATA var undefined on first time
This commit is contained in:
parent
92d456dbf4
commit
4584384beb
@ -14,6 +14,11 @@ export default function Component({ service }) {
|
||||
if (error) {
|
||||
return <Container error={error} />;
|
||||
}
|
||||
|
||||
if (!data) {
|
||||
return <Container service={service} />;
|
||||
}
|
||||
|
||||
const totalObserved = Object.keys(data).length;
|
||||
let diffsDetected = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user