Fix videos list when page is empty
This commit is contained in:
parent
79bd2632d6
commit
35d50b7dd2
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue