dont navigate to posts that dont exisit
This commit is contained in:
parent
58ac040f8f
commit
bc25ef2385
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ app.pages.Stream = app.views.Base.extend({
|
||||||
var self = this;
|
var self = this;
|
||||||
this.streamView.on('loadMore', function(){
|
this.streamView.on('loadMore', function(){
|
||||||
var post = this.stream.items.last();
|
var post = this.stream.items.last();
|
||||||
self.navigateToPost(post)
|
if(post){
|
||||||
|
self.navigateToPost(post)
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue