diff --git a/frontend-v2/src/features/model/VariableRow.tsx b/frontend-v2/src/features/model/VariableRow.tsx index 6aee9d53..d84c3b47 100644 --- a/frontend-v2/src/features/model/VariableRow.tsx +++ b/frontend-v2/src/features/model/VariableRow.tsx @@ -128,11 +128,11 @@ const VariableRow: FC = ({ const intervalId = setInterval(() => { if (isDirty) { handleSubmit((data) => { - // @ts-expect-error + // @ts-expect-error - lower_bound and upper_bound can be null if (data.lower_bound === "") { data.lower_bound = null; } - // @ts-expect-error + // @ts-expect-error - lower_bound and upper_bound can be null if (data.upper_bound === "") { data.upper_bound = null; } diff --git a/frontend-v2/src/features/results/Results.tsx b/frontend-v2/src/features/results/Results.tsx index 49615b87..13b727c6 100644 --- a/frontend-v2/src/features/results/Results.tsx +++ b/frontend-v2/src/features/results/Results.tsx @@ -1,6 +1,6 @@ import { Tabs, Tab, Box, Button, IconButton } from "@mui/material"; import RemoveCircleOutlineIcon from "@mui/icons-material/RemoveCircleOutline"; -import { ChangeEvent, FC, useEffect, useState } from "react"; +import { SyntheticEvent, FC, useState } from "react"; import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown"; import ResultsTab from "./ResultsTab"; import { TableHeader } from "../../components/TableHeader"; @@ -28,7 +28,7 @@ const Results: FC = () => { setTab(newTables?.length - 1); }; - const handleTabChange = async (event: ChangeEvent<{}>, newValue: number) => { + const handleTabChange = async (event: SyntheticEvent, newValue: number) => { setTab(newValue); }; diff --git a/frontend-v2/src/features/simulation/useSimulationInputs.ts b/frontend-v2/src/features/simulation/useSimulationInputs.ts index 35b657b7..72aa5661 100644 --- a/frontend-v2/src/features/simulation/useSimulationInputs.ts +++ b/frontend-v2/src/features/simulation/useSimulationInputs.ts @@ -49,7 +49,7 @@ const getSimulateInput = ( } else if (mode == simulationInputMode.ALL_OUTPUTS_NO_AMOUNTS) { const amountNames = ["Aa", "A1", "A2", "A3"]; for (const v of variables || []) { - let isAmount = model.is_library_model && amountNames.includes(v.name); + const isAmount = model.is_library_model && amountNames.includes(v.name); if (!v.constant && !isAmount) { outputs.push(v.qname); }