HemmeligOrg / Hemmelig.app

Keep your sensitive information out of chat logs, emails, and more with encrypted secrets.
https://hemmelig.app
MIT License
684 stars 59 forks source link

Blank "public pastes" page when no items available #262

Closed ltguillaume closed 7 months ago

ltguillaume commented 7 months ago

Description

Click on "Public pastes" while there are none available. See a blank page.

Browser console:

TypeError: o.map is not a function                          index.js:39:73
    A https://my.server/assets/index-d6252cfd.js:1
    rf https://my.server/assets/index-7845421a.js:37
    Iu https://my.server/assets/index-7845421a.js:37
    kv https://my.server/assets/index-7845421a.js:41
    bv https://my.server/assets/index-7845421a.js:41
    oS https://my.server/assets/index-7845421a.js:41
    vo https://my.server/assets/index-7845421a.js:41
    Wu https://my.server/assets/index-7845421a.js:39
    q0 https://my.server/assets/index-7845421a.js:37
    unstable_runWithPriority https://my.server/assets/index-7845421a.js:26
    Hr https://my.server/assets/index-7845421a.js:37
    q0 https://my.server/assets/index-7845421a.js:37
    At https://my.server/assets/index-7845421a.js:37
    hr https://my.server/assets/index-7845421a.js:39
    af https://my.server/assets/index-7845421a.js:37
    A https://my.server/assets/index-d6252cfd.js:1

Screenshots

Imagine a blank page 😉

Additional information

Latest Docker release (just updated).

bjarneo commented 7 months ago

Intended behavior. Wink wink.

Thanks :)

bjarneo commented 7 months ago

https://github.com/HemmeligOrg/Hemmelig.app/commit/5851a41fced225c00095fdadf63d32a922dc6f2c

ltguillaume commented 7 months ago

What I now see with 5.19.3 is:

Firefox

Unexpected Application Error!
JSON.parse: unexpected end of data at line 1 column 1 of the JSON data

Chromium:

Unexpected Application Error!
Unexpected end of JSON input
SyntaxError: Unexpected end of JSON input
    at h (https://my.server/assets/secret-9f08bd0b.js:1:916)
    at async loader (https://my.server/assets/index-c1f77e86.js:126:32994)
    at async ni (https://my.server/assets/index-c1f77e86.js:103:3846)
    at async Promise.all (index 0)
    at async Pt (https://my.server/assets/index-c1f77e86.js:102:24015)
    at async Lo (https://my.server/assets/index-c1f77e86.js:102:19213)
    at async br (https://my.server/assets/index-c1f77e86.js:102:17256)
    at async Object.It [as navigate] (https://my.server/assets/index-c1f77e86.js:102:15834)