File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
optuna_dashboard/ts/components Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,7 @@ const useTrials = (
123123 . then ( ( filtered ) => {
124124 setFilteredTrials ( filtered )
125125 } )
126- . catch ( ( error ) => {
127- console . error ( "Failed to filter trials:" , error )
126+ . catch ( ( ) => {
128127 setFilteredTrials ( result ) // Fallback to unfiltered trials on error
129128 } )
130129 } else {
@@ -474,7 +473,10 @@ export const TrialList: FC<{ studyDetail: StudyDetail | null }> = ({
474473 useTrialFilterQuery ( {
475474 nRetry : 5 ,
476475 onDenied : handleClearFilter ,
477- onFailed : handleClearFilter ,
476+ onFailed : ( errorMsg : string ) => {
477+ console . error ( "Failed to filter trials:" , errorMsg )
478+ handleClearFilter ( )
479+ } ,
478480 } )
479481 const llmEnabled = useAtomValue ( llmIsAvailable )
480482 const trials = useTrials (
You can’t perform that action at this time.
0 commit comments