From c29a4bd1f824b2e8d63b69bf64ac6fa2837ac77b Mon Sep 17 00:00:00 2001 From: Cheng Huzi Date: Thu, 1 Jul 2021 22:47:02 -0400 Subject: [PATCH] Add todo --- optuna_dashboard/static/components/StudyDetail.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/optuna_dashboard/static/components/StudyDetail.tsx b/optuna_dashboard/static/components/StudyDetail.tsx index f8a2114d..7628545f 100644 --- a/optuna_dashboard/static/components/StudyDetail.tsx +++ b/optuna_dashboard/static/components/StudyDetail.tsx @@ -118,6 +118,7 @@ export const StudyDetail: FC = () => { }, reloadInterval * 1000) return () => clearInterval(intervalId) }, [reloadInterval, studyDetail]) + // TODO(chenghuzi): Reduce the number of calls to setInterval and clearInterval. const title = studyDetail !== null ? studyDetail.name : `Study #${studyId}` const trials: Trial[] = studyDetail !== null ? studyDetail.trials : []