From 4f59ae87dbcd43b711b9b1f8ba31bd8ddb4b73b2 Mon Sep 17 00:00:00 2001 From: c-bata Date: Wed, 28 Aug 2024 17:21:51 +0900 Subject: [PATCH] Avoid crushing on Chrome v128 when using plotlypy mode --- optuna_dashboard/ts/components/GraphParallelCoordinate.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/optuna_dashboard/ts/components/GraphParallelCoordinate.tsx b/optuna_dashboard/ts/components/GraphParallelCoordinate.tsx index d6cdcdc90..2caf95cea 100644 --- a/optuna_dashboard/ts/components/GraphParallelCoordinate.tsx +++ b/optuna_dashboard/ts/components/GraphParallelCoordinate.tsx @@ -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(() => {