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

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

View File

@@ -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 (