joepress / firstcapstone_twitch

0 stars 0 forks source link

If Search returns no results, an error appears in console. #2

Open trystant opened 7 years ago

trystant commented 7 years ago

So, I did a search for "Mario" because I was hanging out with a 9 year old who was looking for twitch channels. I noticed that nothing showed up on the application, and in the Javascript console, this error appeared:

![screenshot 2017-07-21 at 5 44 08 pm](https://user-images.githubusercontent.com/13509/28483632-4c882b44-6e3c-11e7-9e1c-72e6a8ee8963.png)

app.js:31 Uncaught TypeError: Cannot read property 'channel' of undefined
    at Object.success (app.js:31)
    at i (jquery-3.1.0.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-3.1.0.min.js:2)
    at A (jquery-3.1.0.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery-3.1.0.min.js:4)

screenshot: screenshot 2017-07-21 at 5 44 08 pm