mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-11 12:30:25 +08:00
Catch error inside parallel coordinate plot
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user