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

Error "Cannot read property 'map' of undefined" when selecting a show #7

Open
hexaclue opened this issue Aug 16, 2019 · 2 comments
Open

Comments

@hexaclue
Copy link

Error Cannot read property 'map' of undefined in the console when selecting a show without a seasonDetails.genre_ids property, causing an app softlock (the loading animation cannot be dismissed).
Stream Box version: c989568

Full error:

Unhandled Rejection at: Promise Promise {
  <rejected> TypeError: Cannot read property 'map' of undefined
      at EventEmitter.<anonymous> (C:\[...]\stream-box\index.js:258:35)
      at processTicksAndRejections (internal/process/task_queues.js:89:5)
} reason: TypeError: Cannot read property 'map' of undefined
    at EventEmitter.<anonymous> (C:\[...]\stream-box\index.js:258:35)
    at processTicksAndRejections (internal/process/task_queues.js:89:5)
@jonbarrow
Copy link
Owner

I have never come across a series or movie without that property, can you provide the name of the media so I can check it out further?

@hexaclue
Copy link
Author

hexaclue commented Aug 17, 2019

Series I encountered this issue with is Disney's Amphibia.

An easy fix would be creating an empty array variable, then wrapping the map function in a try/catch block. Then, when sending the update, send the variable created earlier.

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

No branches or pull requests

2 participants