diff --git a/webapp/src/components/AutomationList/AutomationListBox.tsx b/webapp/src/components/AutomationList/AutomationListBox.tsx index 72a960b..080f061 100644 --- a/webapp/src/components/AutomationList/AutomationListBox.tsx +++ b/webapp/src/components/AutomationList/AutomationListBox.tsx @@ -26,6 +26,7 @@ const useAutomationListBoxState = () => { initialSelected = [initialSelected] } initialSelected = initialSelected.map(Number) + // eslint-disable-next-line } catch (_) { } const [searchText, setSearchText] = useState(cookies.albSearchText ?? ""); const [selectedTagIdx, setSelectedTagIdx] = useState(initialSelected); diff --git a/webapp/src/components/AutomationList/index.tsx b/webapp/src/components/AutomationList/index.tsx index 5f465d0..63f7568 100644 --- a/webapp/src/components/AutomationList/index.tsx +++ b/webapp/src/components/AutomationList/index.tsx @@ -30,6 +30,7 @@ export const useAutomationListState = () => { let initialCurrent = 0; try { initialCurrent = Number(cookies.alCurrent ?? '0'); + // eslint-disable-next-line } catch (_) { } const [hideList, setHideList] = useState(false); diff --git a/webapp/src/components/Inputs/InputAutoComplete.tsx b/webapp/src/components/Inputs/InputAutoComplete.tsx index bbd7cdb..eb88c92 100644 --- a/webapp/src/components/Inputs/InputAutoComplete.tsx +++ b/webapp/src/components/Inputs/InputAutoComplete.tsx @@ -4,7 +4,6 @@ import { Option } from 'haService'; import Autocomplete from '@mui/material/Autocomplete'; import TextField from '@mui/material/TextField'; import Chip from '@mui/material/Chip'; -import { prettyName } from "utils/formatting"; import { Badge } from "@mui/material"; import { SearchItem } from "./extras"; diff --git a/webapp/src/components/NodeEditor/OptionManager/ActionService.tsx b/webapp/src/components/NodeEditor/OptionManager/ActionService.tsx index bf4ed15..80abdba 100644 --- a/webapp/src/components/NodeEditor/OptionManager/ActionService.tsx +++ b/webapp/src/components/NodeEditor/OptionManager/ActionService.tsx @@ -1,5 +1,4 @@ import { InputService } from "components/Inputs/InputService"; -import InputText from "components/Inputs/InputText"; import InputYaml from 'components/Inputs/InputYaml'; import { ServiceAction } from "types/automations/actions"; import { OptionManager, updateActionData } from './OptionManager'; diff --git a/webapp/src/utils/automations.ts b/webapp/src/utils/automations.ts index 70bf0d4..193023c 100644 --- a/webapp/src/utils/automations.ts +++ b/webapp/src/utils/automations.ts @@ -3,7 +3,6 @@ import { AutomationNode, AutomationNodeMapping, AutomationNodeSubtype, Automatio import { AutomationTrigger, TriggerType } from 'types/automations/triggers'; import { MiniFailure } from "types/validators/helper"; import { getFailures } from '../types/validators/helper'; -import { Struct } from "superstruct"; import { ActionType } from "types/automations/actions"; import { ConditionType } from "types/automations/conditions";