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
1 changed files with 1 additions and 1 deletions

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) {