Skip to content

Commit

Permalink
Update artifact toggle to disable when no artifacts are available
Browse files Browse the repository at this point in the history
  • Loading branch information
hrntsm committed Jan 12, 2025
1 parent 6d14847 commit 51caf03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optuna_dashboard/ts/components/TrialSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const TrialSelection: FC<{ studyDetail: StudyDetail | null }> = ({
<Switch
checked={showArtifacts}
onChange={handleShowArtifactsChange}
disabled={!(studyDetail.directions.length > 1)}
disabled={studyDetail.trials[0].artifacts.length === 0}
value="enable"
/>
}
Expand Down

0 comments on commit 51caf03

Please sign in to comment.