Don't try to use undefined response
This commit is contained in:
1 parent
5180426fc1
commit
700713abcf
1 file changed
+2
@@ -44,6 +44,8 @@ var SuggestList = new Class({
|
|||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
if(!json) return;
|
||||||
|
|
||||||
Object.each(json.suggestions, function(movie){
|
Object.each(json.suggestions, function(movie){
|
||||||
|
|
||||||
var m = new Block.Search.Item(movie, {
|
var m = new Block.Search.Item(movie, {
|
||||||
|
|||||||
Reference in new issue
Block a user