openpose-editor icon indicating copy to clipboard operation
openpose-editor copied to clipboard

Cannot read properties of undefined (reading 'forEach')

Open MolotovCherry opened this issue 2 years ago • 3 comments

Describe the bug Clicking "detect from image" or "add background image" throws error in console.

To Reproduce Click one of the buttons

Expected behavior No errors

Additional context

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'forEach')
    at st (index.4395ab38.js:76:2728)

Below, data is undefiend

function st(xt) {
    xt.data.forEach((dt,Gt)=>{
        if (typeof dt == "object" && dt !== null && dt.__type__ === "update") {
            for (const [zt,Lt] of Object.entries(dt))
                zt !== "__type__" && n(11, L[jt[Gt]].props[zt] = Lt, L);
            n(9, m)
        } else
            n(11, L[jt[Gt]].props.value = dt, L)
    }
    )
}

MolotovCherry avatar Feb 21 '23 16:02 MolotovCherry

after today update still same :c

Gargantuanman avatar Feb 22 '23 14:02 Gargantuanman

I've done a bit of research and it seems that this is a problem on the gradio side as per https://github.com/AlUlkesh/stable-diffusion-webui-images-browser/issues/28 So I'll wait for the gradio fix.

fkunn1326 avatar Feb 23 '23 01:02 fkunn1326

+1

aleimu avatar Feb 24 '23 09:02 aleimu