Fix unifi with no type passing and lint

This commit is contained in:
shamoon 2024-06-03 11:06:26 -07:00
parent ec79f3042a
commit 67a9f4983c
3 changed files with 15 additions and 10 deletions

View file

@ -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) {