mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-09 11:28:14 +08:00
Avoid crushing on Chrome v128 when using plotlypy mode
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user