diff --git a/src/widgets/omada/component.jsx b/src/widgets/omada/component.jsx
index d0565e43..c4da6067 100644
--- a/src/widgets/omada/component.jsx
+++ b/src/widgets/omada/component.jsx
@@ -17,12 +17,20 @@ export default function Component({ service }) {
return ;
}
+ if (!widget.fields) {
+ widget.fields = ["connectedAp", "activeUser", "alerts", "connectedGateway"];
+ } else if (widget.fields?.length > 4) {
+ widget.fields = widget.fields.slice(0, 4);
+ }
+
if (!omadaData) {
return (
+
+
);
}
@@ -32,9 +40,8 @@ export default function Component({ service }) {
- {omadaData.connectedGateways > 0 && (
-
- )}
+
+
);
}