Skip to content

Commit

Permalink
Merge pull request optuna#947 from c-bata/fix-backend-parallel-coordi…
Browse files Browse the repository at this point in the history
…nate

Avoid crushing on Chrome v128 when using plotlypy mode
  • Loading branch information
c-bata authored Aug 28, 2024
2 parents a65618e + 4f59ae8 commit dbb3033
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion optuna_dashboard/ts/components/GraphParallelCoordinate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ const GraphParallelCoordinateBackend: FC<{

useEffect(() => {
if (data && layout && graphComponentState !== "componentWillMount") {
plotly.react(plotDomId, data, layout).then(notifyGraphDidRender)
try {
plotly.react(plotDomId, data, layout).then(notifyGraphDidRender)
} catch (err) {
console.error(err)
}
}
}, [data, layout, graphComponentState])
useEffect(() => {
Expand Down

0 comments on commit dbb3033

Please sign in to comment.