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

fix: memo content availability for visitor mode #1605

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

deEshu2002
Copy link
Contributor

MemoContent being part of "Memo" Component and Memo part of "Explore" page. MemoContent throws error and doesn't render without User states. Since user is "undefined" for visitor mode, destructuring user states to get localSetting is not possible. Hence adding further guard to check for visitorMode and making autoCollapse state "true" by default is the right choice.

@github-actions
Copy link

github-actions bot commented Apr 26, 2023

Uffizzi Preview deployment-23439 was deleted.

@deEshu2002
Copy link
Contributor Author

deEshu2002 commented Apr 26, 2023

Hey @boojack , Uffizzi deployment (https://app.uffizzi.com/github.com/usememos/memos/pull/1602) for my previous pull request #1602 resulted in the error caused by the MemoContent component and failed to render. In this pull request i have provided the possible patch for that bug. After reviewing this can you check #1602 too. Thank you.

Copy link
Collaborator

@boojack boojack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contribution!

@boojack boojack changed the title memo content availability for visitor mode. fix: memo content availability for visitor mode Apr 26, 2023
@boojack boojack merged commit 3fad718 into usememos:main Apr 26, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants