arj03 / ssb-browser-demo

A secure scuttlebutt client interface running in the browser
Other
58 stars 11 forks source link

Error if profile doesn't have a description #305

Closed KyleMaas closed 3 years ago

KyleMaas commented 3 years ago
Uncaught TypeError: Cannot read property 'matchAll' of undefined
    at showProfile (bundle-ui.js:148339)
    at tryToLoadProfile (bundle-ui.js:148377)
    at bundle-ui.js:148386

Stems from here:

https://github.com/arj03/ssb-browser-demo/blob/a1274fdf25a8cb3557d20779578d4fa5be663290/ui/profile.js#L657

arj03 commented 3 years ago

I don't see a showProfile anywhere in this repo? Not even if I grep bundle-ui.js?

Another thing that is really strange, is why that line uses this and not self.

KyleMaas commented 3 years ago

I think that was in an old version from when I had that corrupted git clone I had to redo, so the trace is no longer valid. But the problematic part of the code is still present in the current master revision.

KyleMaas commented 3 years ago

As for why it uses this and not self, I don't know.