1
0
Fork 0

Fix videos list when page is empty

This commit is contained in:
Chocobozzz 2018-10-05 17:07:13 +02:00
parent 79bd2632d6
commit 35d50b7dd2
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -83,7 +83,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy {
pageByVideoId (index: number, page: Video[]) {
// Video are unique in all pages
return page[0].id
return page.length !== 0 ? page[0].id : 0
}
videoById (index: number, video: Video) {