3035app / pialab

PiaLab Angular app
http://www.pialab.io/
GNU General Public License v3.0
26 stars 8 forks source link

[Error] Cannot read property 'pias' of undefined #29

Closed GhostRock37 closed 6 years ago

GhostRock37 commented 6 years ago

Hello,

An error appears once the authenticated user on the front:

Error happens Error: Uncaught (in promise): TypeError: Cannot read property 'pias' of undefined
TypeError: Cannot read property 'pias' of undefined
at n.handleFoldersCollection (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at n.<anonymous> (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at main.4a2f7f5e9ea457eed2cb.bundle.js:1
    at Object.next (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at o (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at t.invoke (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at Object.onInvoke (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at t.invoke (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at e.run (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at polyfills.0b81e59cfc84499f80e2.bundle.js:1
    at n.handleFoldersCollection (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at n.<anonymous> (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at main.4a2f7f5e9ea457eed2cb.bundle.js:1
    at Object.next (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at o (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at t.invoke (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at Object.onInvoke (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at t.invoke (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at e.run (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at polyfills.0b81e59cfc84499f80e2.bundle.js:1
    at x (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at polyfills.0b81e59cfc84499f80e2.bundle.js:1
    at o (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at t.invoke (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at Object.onInvoke (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
    at t.invoke (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at e.run (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at polyfills.0b81e59cfc84499f80e2.bundle.js:1
    at t.invokeTask (polyfills.0b81e59cfc84499f80e2.bundle.js:1)
    at Object.onInvokeTask (main.4a2f7f5e9ea457eed2cb.bundle.js:1)
jpoupinet commented 6 years ago

I had the same error, I solved it by adding an Application and a Structure to the user I was logging with, works fine now.

GhostRock37 commented 6 years ago

oh thanks ! it's ok with a structure affect to the user !

:+1:

RomainSanchez commented 6 years ago

Thanks for stepping up @jpoupinet