fix progress disappear issue

This commit is contained in:
Qing 2024-01-16 23:12:52 +08:00
parent 84c2b515c8
commit 1fe54cac51

View File

@ -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