mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +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");
|
||||
|
||||
if (statsError) {
|
||||
return <Container service={service} error={statsError} />;
|
||||
if (statsError || statsData?.message) {
|
||||
return <Container service={service} error={statsError ?? statsData} />;
|
||||
}
|
||||
|
||||
if (!statsData) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user