diff --git a/optuna_dashboard/ts/components/StudyDetail.tsx b/optuna_dashboard/ts/components/StudyDetail.tsx index 898856df..8d5bce9b 100644 --- a/optuna_dashboard/ts/components/StudyDetail.tsx +++ b/optuna_dashboard/ts/components/StudyDetail.tsx @@ -35,12 +35,8 @@ import { PreferentialHistory } from "./Preferential/PreferentialHistory" import { PreferentialAnalytics } from "./Preferential/PreferentialAnalytics" import { PreferentialGraph } from "./Preferential/PreferentialGraph" -type ParamTypes = { - studyId: string -} - export const useURLVars = (): number => { - const { studyId } = useParams() + const { studyId } = useParams<{ studyId: string }>() if (studyId === undefined) { throw new Error("studyId is not defined")