clean up
This commit is contained in:
1 parent
c4a90fcd1c
commit
fb30d577aa
5 files changed
+2
-3
No files matched your search
@@ -26,6 +26,7 @@ const useAutomationListBoxState = () => {
|
|||||||
initialSelected = [initialSelected]
|
initialSelected = [initialSelected]
|
||||||
}
|
}
|
||||||
initialSelected = initialSelected.map(Number)
|
initialSelected = initialSelected.map(Number)
|
||||||
|
// eslint-disable-next-line
|
||||||
} catch (_) { }
|
} catch (_) { }
|
||||||
const [searchText, setSearchText] = useState(cookies.albSearchText ?? "");
|
const [searchText, setSearchText] = useState(cookies.albSearchText ?? "");
|
||||||
const [selectedTagIdx, setSelectedTagIdx] = useState<number[]>(initialSelected);
|
const [selectedTagIdx, setSelectedTagIdx] = useState<number[]>(initialSelected);
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export const useAutomationListState = () => {
|
|||||||
let initialCurrent = 0;
|
let initialCurrent = 0;
|
||||||
try {
|
try {
|
||||||
initialCurrent = Number(cookies.alCurrent ?? '0');
|
initialCurrent = Number(cookies.alCurrent ?? '0');
|
||||||
|
// eslint-disable-next-line
|
||||||
} catch (_) { }
|
} catch (_) { }
|
||||||
|
|
||||||
const [hideList, setHideList] = useState(false);
|
const [hideList, setHideList] = useState(false);
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import { Option } from 'haService';
|
|||||||
import Autocomplete from '@mui/material/Autocomplete';
|
import Autocomplete from '@mui/material/Autocomplete';
|
||||||
import TextField from '@mui/material/TextField';
|
import TextField from '@mui/material/TextField';
|
||||||
import Chip from '@mui/material/Chip';
|
import Chip from '@mui/material/Chip';
|
||||||
import { prettyName } from "utils/formatting";
|
|
||||||
import { Badge } from "@mui/material";
|
import { Badge } from "@mui/material";
|
||||||
import { SearchItem } from "./extras";
|
import { SearchItem } from "./extras";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { InputService } from "components/Inputs/InputService";
|
import { InputService } from "components/Inputs/InputService";
|
||||||
import InputText from "components/Inputs/InputText";
|
|
||||||
import InputYaml from 'components/Inputs/InputYaml';
|
import InputYaml from 'components/Inputs/InputYaml';
|
||||||
import { ServiceAction } from "types/automations/actions";
|
import { ServiceAction } from "types/automations/actions";
|
||||||
import { OptionManager, updateActionData } from './OptionManager';
|
import { OptionManager, updateActionData } from './OptionManager';
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { AutomationNode, AutomationNodeMapping, AutomationNodeSubtype, Automatio
|
|||||||
import { AutomationTrigger, TriggerType } from 'types/automations/triggers';
|
import { AutomationTrigger, TriggerType } from 'types/automations/triggers';
|
||||||
import { MiniFailure } from "types/validators/helper";
|
import { MiniFailure } from "types/validators/helper";
|
||||||
import { getFailures } from '../types/validators/helper';
|
import { getFailures } from '../types/validators/helper';
|
||||||
import { Struct } from "superstruct";
|
|
||||||
import { ActionType } from "types/automations/actions";
|
import { ActionType } from "types/automations/actions";
|
||||||
import { ConditionType } from "types/automations/conditions";
|
import { ConditionType } from "types/automations/conditions";
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user