Merge pull request #377 from shamoon/unified-infowidget-settings

Feature: Unified info widget settings
This commit is contained in:
Ben Phelps authored and GitHub committed 2022-10-13 16:13:43 +03:00
commit 4ea279856f
7 files changed
+99 -41

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 (