mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-23 13:30:25 +08:00
Apply suggestions from code review
Co-authored-by: Masashi Shibata <c-bata@users.noreply.github.com>
This commit is contained in:
committed by
keisuke-umezawa
co-authored by
Masashi Shibata
parent
eb388e1762
commit
a19a4aa790
@@ -284,7 +284,7 @@ export const TrialTable: FC<{
|
||||
|
||||
e.preventDefault()
|
||||
const studyId = (studyDetail as StudyDetail).id
|
||||
const trialId = trials[index].number
|
||||
const trialId = trials[index].trial_id
|
||||
const objectiveValues = objectiveFormRefs.map((ref) =>
|
||||
ref.current ? Number(ref.current.value) : NaN
|
||||
)
|
||||
@@ -292,7 +292,7 @@ export const TrialTable: FC<{
|
||||
}
|
||||
const handleFailTrial = (e: MouseEvent<HTMLButtonElement>): void => {
|
||||
const studyId = (studyDetail as StudyDetail).id
|
||||
const trialId = trials[index].number
|
||||
const trialId = trials[index].trial_id
|
||||
action.tellTrial(studyId, trialId, "Fail")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user