mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 01:26:01 -08:00
pass chart to all containers
This commit is contained in:
@@ -27,11 +27,11 @@ export default function Component({ service }) {
|
||||
});
|
||||
|
||||
if (error) {
|
||||
return <Container><Error error={error} /></Container>;
|
||||
return <Container chart={chart}><Error error={error} /></Container>;
|
||||
}
|
||||
|
||||
if (!data) {
|
||||
return <Container><Block position="bottom-3 left-3">-</Block></Container>;
|
||||
return <Container chart={chart}><Block position="bottom-3 left-3">-</Block></Container>;
|
||||
}
|
||||
|
||||
data.splice(chart ? 5 : 1);
|
||||
|
||||
Reference in New Issue
Block a user