Catch error inside parallel coordinate plot

This commit is contained in:
c-bata
2024-08-19 22:47:30 +09:00
parent 37ac0ba4f0
commit 2682ee93c6
@@ -37,9 +37,17 @@ export const PlotParallelCoordinate: FC<{
const trials = useFilteredTrials(study, targets, false)
useEffect(() => {
if (study !== null && graphComponentState !== "componentWillMount") {
plotCoordinate(study, trials, targets, searchSpace, colorThemeUsed)?.then(
notifyGraphDidRender
)
try {
plotCoordinate(
study,
trials,
targets,
searchSpace,
colorThemeUsed
)?.then(notifyGraphDidRender)
} catch (e) {
console.error(e)
}
}
}, [
study,