usememos / memos

An open source, lightweight note-taking service. Easily capture and share your great thoughts.
https://usememos.com
MIT License
30.3k stars 2.27k forks source link

Cannot read properties of undefined (reading 'role') #3872

Closed pedrosouza458 closed 2 weeks ago

pedrosouza458 commented 3 weeks ago

Describe the bug

Im getting this error when i try to access the demo:

Unexpected Application Error!
Cannot read properties of undefined (reading 'role')
TypeError: Cannot read properties of undefined (reading 'role')
    at isSuperUser (https://demo.usememos.com/assets/index-DtEUN4hn.js:718:38678)
    at MemoView (https://demo.usememos.com/assets/index-DtEUN4hn.js:1128:68464)
    at Nh (https://demo.usememos.com/assets/index-DtEUN4hn.js:68:18867)
    at cj (https://demo.usememos.com/assets/index-DtEUN4hn.js:70:3489)
    at bj (https://demo.usememos.com/assets/index-DtEUN4hn.js:70:2622)
    at $i (https://demo.usememos.com/assets/index-DtEUN4hn.js:70:2091)
    at Vk (https://demo.usememos.com/assets/index-DtEUN4hn.js:70:52048)
    at Uk (https://demo.usememos.com/assets/index-DtEUN4hn.js:70:43655)
    at Tk (https://demo.usememos.com/assets/index-DtEUN4hn.js:70:43578)
    at Ik (https://demo.usememos.com/assets/index-DtEUN4hn.js:70:43420)

Steps to reproduce

  1. Go to https://demo.usememos.com/explore

The version of Memos you're using.

latest

Screenshots or additional context

Captura de Tela 2024-09-02 às 21 42 51
RoccoSmit commented 3 weeks ago

Are you still getting the issue? I'm unable to replicate. Demo loads without issues for me

johnnyjoygh commented 2 weeks ago

Fixed with https://github.com/usememos/memos/commit/09586d032c7167f85714d04fa46da1ad91561d55, thanks for your report