mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 21:13:39 +01:00
Chore: better tailscale error handling
This commit is contained in:
parent
5cc487a96d
commit
276a1c3ef4
@ -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…
x
Reference in New Issue
Block a user