Update unifi_console to use private widget options

This commit is contained in:
Michael Shamoon committed 2022-10-12 01:53:57 -07:00
1 parent c1a55ff6d3
commit dced918804
2 files changed
+7 -8

No files matched your search

@@ -10,7 +10,7 @@ export default function Widget({ options }) {
// eslint-disable-next-line no-param-reassign
options.type = "unifi_console";
const { data: statsData, error: statsError } = useWidgetAPI(options, "stat/sites");
const { data: statsData, error: statsError } = useWidgetAPI(options, "stat/sites", { index: options.index });
if (statsError || statsData?.error) {
return (