Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null person_blocks breaking user pages. #491

Closed
dessalines opened this issue Nov 17, 2021 · 1 comment
Closed

Null person_blocks breaking user pages. #491

dessalines opened this issue Nov 17, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@dessalines
Copy link
Member

lemmy-ui_1  | TypeError: Cannot read properties of null (reading 'person_blocks')
lemmy-ui_1  |     at t.o.setPersonBlock (/app/dist/js/server.js:2:668206)
lemmy-ui_1  |     at new t (/app/dist/js/server.js:2:667864)
lemmy-ui_1  |     at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:170:28)
lemmy-ui_1  |     at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:221:20)
lemmy-ui_1  |     at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:221:20)
lemmy-ui_1  |     at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:303:35)
lemmy-ui_1  |     at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:307:39)
lemmy-ui_1  |     at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:221:20)
lemmy-ui_1  |     at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:337:37)
lemmy-ui_1  |     at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:221:20)
@dessalines dessalines added the bug Something isn't working label Nov 17, 2021
@ghost
Copy link

ghost commented Nov 18, 2021

https://github.com/LemmyNet/lemmy-ui/blob/8a80b9518949cb31f7d9602b4a67d9a78e46ed59/src/shared/components/person/profile.tsx

Maybe check to see if Userservice.isntance.myUserInfo is defined and if not, just set this.state.personBlocked to false (since probably not logged in)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant