This commit is contained in:
Cheng Huzi
2021-07-01 22:47:02 -04:00
parent 3b18fe4ec8
commit c29a4bd1f8
@@ -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 : []