Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(frontend): fix linter errors #587

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend-v2/src/features/model/VariableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ const VariableRow: FC<Props> = ({
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;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend-v2/src/features/results/Results.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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);
};

Expand Down
2 changes: 1 addition & 1 deletion frontend-v2/src/features/simulation/useSimulationInputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down