File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
admin/inertia/pages/settings Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export default function BenchmarkPage(props: {
4040 const aiInstalled = useServiceInstalledStatus ( SERVICE_NAMES . OLLAMA )
4141 const [ progress , setProgress ] = useState < BenchmarkProgressWithID | null > ( null )
4242 const [ isRunning , setIsRunning ] = useState ( props . benchmark . status !== 'idle' )
43- const refetchLatestRef = useRef ( refetchLatest )
43+ const refetchLatestRef = useRef < ( ( ) => void ) | null > ( null )
4444 const [ showDetails , setShowDetails ] = useState ( false )
4545 const [ showHistory , setShowHistory ] = useState ( false )
4646 const [ showAIRequiredAlert , setShowAIRequiredAlert ] = useState ( false )
@@ -308,7 +308,7 @@ export default function BenchmarkPage(props: {
308308 setProgress ( data )
309309 if ( data . status === 'completed' || data . status === 'error' ) {
310310 setIsRunning ( false )
311- refetchLatestRef . current ( )
311+ refetchLatestRef . current ?. ( )
312312 }
313313 } )
314314
You can’t perform that action at this time.
0 commit comments