mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 14:18:47 +00:00
Chore: better tailscale error handling
This commit is contained in:
parent
5cc487a96d
commit
276a1c3ef4
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ export default function Component({ service }) {
|
||||||
|
|
||||||
const { data: statsData, error: statsError } = useWidgetAPI(widget, "device");
|
const { data: statsData, error: statsError } = useWidgetAPI(widget, "device");
|
||||||
|
|
||||||
if (statsError) {
|
if (statsError || statsData?.message) {
|
||||||
return <Container service={service} error={statsError} />;
|
return <Container service={service} error={statsError ?? statsData} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!statsData) {
|
if (!statsData) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue