mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-14 08:50:31 +00:00
Update homebridge, autobrr, truenas, tubearchivist, watchtower, pyload widgets
This commit is contained in:
parent
f473d324df
commit
00163d2f44
10 changed files with 40 additions and 14 deletions
|
@ -12,7 +12,8 @@ export default function Component({ service }) {
|
|||
const { data: homebridgeData, error: homebridgeError } = useWidgetAPI(widget, "info");
|
||||
|
||||
if (homebridgeError || homebridgeData?.error) {
|
||||
return <Container error={t("widget.api_error")} />;
|
||||
const finalError = homebridgeError ?? homebridgeData.error;
|
||||
return <Container error={finalError} />;
|
||||
}
|
||||
|
||||
if (!homebridgeData) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue