mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 06:48:47 +00:00
Fix unifi with no type passing and lint
This commit is contained in:
parent
ec79f3042a
commit
67a9f4983c
3 changed files with 15 additions and 10 deletions
|
@ -14,8 +14,8 @@ import useWidgetAPI from "utils/proxy/use-widget-api";
|
|||
export default function Widget({ options }) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
options.type = "unifi_console";
|
||||
// eslint-disable-next-line no-param-reassign, no-multi-assign
|
||||
options.service_group = options.service_name = "unifi_console";
|
||||
const { data: statsData, error: statsError } = useWidgetAPI(options, "stat/sites", { index: options.index });
|
||||
|
||||
if (statsError) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue