Skip to content

Commit 99d9fc0

Browse files
committed
fixed ESlint errors
1 parent faed264 commit 99d9fc0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

client/src/views/ModelInference.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { startModelInference, stopModelInference } from '../utils/api'
55
import Configurator from '../components/Configurator'
66
import { AppContext } from '../contexts/GlobalContext'
77

8-
function ModelInference ({isInferring, setIsInferring}) {
8+
function ModelInference ({ isInferring, setIsInferring }) {
99
const context = useContext(AppContext)
1010
// const [isInference, setIsInference] = useState(false)
1111
const handleStartButton = async () => {

client/src/views/Views.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function Views () {
3535
} else if (current === 'monitoring') {
3636
return <Monitoring />
3737
} else if (current === 'inference') {
38-
return <ModelInference isInferring={isInferring} setIsInferring={setIsInferring }/>
38+
return <ModelInference isInferring={isInferring} setIsInferring={setIsInferring} />
3939
}
4040
}
4141

@@ -81,8 +81,9 @@ function Views () {
8181
}
8282
}
8383

84-
useEffect(() => {//This function makes sure that the inferring will continue when current tab changes
84+
useEffect(() => { // This function makes sure that the inferring will continue when current tab changes
8585
if (current === 'inference' && isInferring) {
86+
console.log('Inference process is continuing...')
8687
}
8788
}, [current, isInferring])
8889

0 commit comments

Comments
 (0)