Merge pull request #1511 from brunoccr/main

Fix Slice error on container.jsx
This commit is contained in:
shamoon 2023-05-17 13:21:32 -07:00 committed by GitHub
commit ec25267235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,12 @@ export default function Component({ service }) {
}
if (!data) {
return <Container service={service} />;
return (
<Container service={service}>
<Block label="changedetectionio.diffsDetected" />
<Block label="changedetectionio.totalObserved" />
</Container>
);
}
const totalObserved = Object.keys(data).length;