mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Merge pull request #377 from shamoon/unified-infowidget-settings
Feature: Unified info widget settings
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user