Chore: better tailscale error handling
Some checks are pending
Docker / Linting Checks (push) Waiting to run
Docker / Docker Build & Push (push) Blocked by required conditions

This commit is contained in:
shamoon
2024-11-28 21:54:22 -08:00
parent 5cc487a96d
commit 276a1c3ef4

View File

@@ -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) {