Any message I send, in any browser, with every cache cleared, on any device breaks because somebody didn’t remember to conditional check.
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘length’)
This is the code it is referring too
l.useMemo)((()=>{
var e;
const t = [];
return (null !== (e = n.content) && void 0 !== e ? e : []).forEach((e=>{
"text" === e.type && e.text.annotations.length > 0 && e.text.annotations.forEach((e=>{
"file_path" === e.type && t.push(e.file_path.file_id)
}
))
}
)),
t
}
), [n])
It is annotations that turns up undefined, please fix as it breaks the page every message I send.
kthnxbye