mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 14:18:47 +00:00
Add setting to hide widgets on failure
This commit is contained in:
parent
3d654e03c6
commit
bd1c2b1881
84 changed files with 103 additions and 93 deletions
|
@ -14,7 +14,7 @@ export default function Component({ service }) {
|
|||
|
||||
if (libraryError || seriesError || bookError) {
|
||||
const finalError = libraryError ?? seriesError ?? bookError;
|
||||
return <Container error={finalError} />;
|
||||
return <Container service={service} error={finalError} />;
|
||||
}
|
||||
|
||||
if (!libraryData || !seriesData || !bookData) {
|
||||
|
@ -34,4 +34,4 @@ export default function Component({ service }) {
|
|||
<Block label="komga.books" value={t("common.number", { value: bookData.totalElements })} />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue