mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Update unifi_console to use private widget options
This commit is contained in:
parent
c1a55ff6d3
commit
dced918804
2 changed files with 7 additions and 8 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue