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)
|
const progress = Math.min(Math.round((step / settings.sdSteps) * 100), 100)
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (!isSD) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
socket.on("connect", () => {
|
socket.on("connect", () => {
|
||||||
setIsConnected(true)
|
setIsConnected(true)
|
||||||
})
|
})
|
||||||
@ -48,7 +45,7 @@ const DiffusionProgress = () => {
|
|||||||
socket.off("diffusion_progress")
|
socket.off("diffusion_progress")
|
||||||
socket.off("diffusion_finish")
|
socket.off("diffusion_finish")
|
||||||
}
|
}
|
||||||
}, [isSD])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
Loading…
Reference in New Issue
Block a user