mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Chore: better tailscale error handling
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user