From ea49dd7ccf7a88036c5b6da880959688d7503bca Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Mon, 5 Feb 2024 14:43:50 -0800
Subject: [PATCH] Unifi widget: Show a more helpful error if specified site not
found
---
src/widgets/unifi/component.jsx | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/widgets/unifi/component.jsx b/src/widgets/unifi/component.jsx
index 5ab09999..2d5784b7 100644
--- a/src/widgets/unifi/component.jsx
+++ b/src/widgets/unifi/component.jsx
@@ -20,6 +20,10 @@ export default function Component({ service }) {
: statsData?.data?.find((s) => s.name === "default");
if (!defaultSite) {
+ if (widget.site) {
+ return ;
+ }
+
return (