aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-05 17:07:13 +0200
committerChocobozzz <me@florianbigard.com>2018-10-05 17:07:13 +0200
commit35d50b7dd26b3cf646b8845784927bb1ef18dfb3 (patch)
tree808f0fd96b06ed016432214203060226fdd1267d /client/src/app
parent79bd2632d62f2f600d663815fcc00a01ca981aa1 (diff)
downloadPeerTube-35d50b7dd26b3cf646b8845784927bb1ef18dfb3.tar.gz
PeerTube-35d50b7dd26b3cf646b8845784927bb1ef18dfb3.tar.zst
PeerTube-35d50b7dd26b3cf646b8845784927bb1ef18dfb3.zip
Fix videos list when page is empty
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/shared/video/abstract-video-list.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts
index 6a758ebe0..763791165 100644
--- a/client/src/app/shared/video/abstract-video-list.ts
+++ b/client/src/app/shared/video/abstract-video-list.ts
@@ -83,7 +83,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy {
83 83
84 pageByVideoId (index: number, page: Video[]) { 84 pageByVideoId (index: number, page: Video[]) {
85 // Video are unique in all pages 85 // Video are unique in all pages
86 return page[0].id 86 return page.length !== 0 ? page[0].id : 0
87 } 87 }
88 88
89 videoById (index: number, video: Video) { 89 videoById (index: number, video: Video) {