Fix Slice error on container.jsx

This commit is contained in:
Bruno Rossetto 2023-05-17 17:02:46 -03:00 committed by GitHub
parent 1091447b8b
commit cc36ad19ee
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;