mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-09 11:28:14 +08:00
Fix issue 401
This commit is contained in:
@@ -154,7 +154,7 @@ const plotContour = (
|
||||
|
||||
const trials: Trial[] = study ? study.trials : []
|
||||
const filteredTrials = trials.filter((t) => filterFunc(t, objectiveId))
|
||||
if (filteredTrials.length === 0 || xParam === null || yParam === null) {
|
||||
if (filteredTrials.length < 2 || xParam === null || yParam === null) {
|
||||
plotly.react(plotDomId, [], {
|
||||
template: mode === "dark" ? plotlyDarkTemplate : {},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user