Chore: better tailscale error handling

pull/4359/head
shamoon 2 months ago
parent 5cc487a96d
commit 276a1c3ef4
No known key found for this signature in database

@ -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…
Cancel
Save