fix progress disappear issue
This commit is contained in:
parent
84c2b515c8
commit
1fe54cac51
@ -21,9 +21,6 @@ const DiffusionProgress = () => {
|
||||
const progress = Math.min(Math.round((step / settings.sdSteps) * 100), 100)
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!isSD) {
|
||||
return
|
||||
}
|
||||
socket.on("connect", () => {
|
||||
setIsConnected(true)
|
||||
})
|
||||
@ -48,7 +45,7 @@ const DiffusionProgress = () => {
|
||||
socket.off("diffusion_progress")
|
||||
socket.off("diffusion_finish")
|
||||
}
|
||||
}, [isSD])
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div
|
||||
|
Loading…
Reference in New Issue
Block a user