Chore: better tailscale error handling
This commit is contained in:
1 file changed
+2
-2
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user