Skip to content

Commit

Permalink
Avoid crushing on Chrome v128 when using plotlypy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Aug 28, 2024
1 parent a65618e commit 4f59ae8
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 4f59ae8

Please sign in to comment.